← Commit list

244fdd45c

Denys Vlasenko
Denys Vlasenko
2016-09-20
SUCCESS Duration: 265s

Subject

ash: fix handling of bashism $'xxx' with high-bit chars. Closes 9236

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/ash.c+3 -0
@@ -11229,6 +11229,9 @@ readtoken1(int c, int syntax, char *eofmark, int striptabs)
c = decode_dollar_squote();
if (c & 0x100) {
USTPUTC('\\', out);
+ if (eofmark == NULL || dblquote)
+ /* Or else this SEGVs: $'\<0x82>' */
+ USTPUTC(CTLESC, out);
c = (unsigned char)c;
}
}