qwen-code Bug: Non-UTF-8 Bytes Collapse to U+FFFD, Bypassing Shell Path Guards

yiliang114 · ghdev · 2026-11-09

QwenLM/qwen-code issue #16757 (P2, security) reports that the coding agent's shell permission guard decodes ANSI-C ($'…') words via Buffer.from(bytes).toString('utf8'), collapsing invalid UTF-8 bytes to U+FFFD, so the analyzer matches a different path than the one bash actually opens. Since Linux filenames are raw byte sequences, this is a permission-matching gap, not just a display bug.

Original post →

More from coding & agent

coding & agent channel →