| Summary: | Bitbake should prevent, if possible, obscured or hidden text from meta data. | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | Mark Hatle <mark.hatle> |
| Component: | bitbake | Assignee: | Unassigned <unassigned> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | ccasciato, poky.bs.watcher, poky.watcher, randy.macleod, richard.purdie |
| Version: | unspecified | ||
| Target Milestone: | 6.1 M3 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
|
Description
Mark Hatle
2026-06-01 16:15:32 UTC
There are at least a couple of different potential ways of hiding text, either using extended unicode characters or using escape sequences that could affect a terminal window. We need to ensure that our patch submission/review process doesn't allow such sequences to obscure text. As Mark mentions, for added protection, we may want to add checks to detect such sequences in metadata/recipes (e.g. in comments) of recipe files, just to ensure such issues would be flagged up. For the purposes of resolving the bug, we should test such sequences and see how they look in different places and ensure we would notice them. The specific instance in the example used an ANSI escape sequence of ESC[2K to clear the line after it was printed. This effectively hid the message from the terminal, but the AI still interpreted it. There are other ANSI escape sequences that can be used to clear to the beginning of the line, word, etc. One possible approach could be to reject or warn about the character sequence of 'ESC['. Doing this would at least make it more clear if something fishy was happening. Note, the unicode sequences can be used for similar behavior, and that is much more difficult to resolve. I am unaware of any sort of standard unicode based character validation to prevent hidden or obscured text. |