mirror of
https://github.com/frida/tinycc
synced 2024-12-20 20:22:36 +03:00
d8fdd380f3
See added testcase 19.c from a bug report. The problem is reading outside the arguments buffers, even though we aren't allowed to. The single can_read_stream variable is not enough, sometimes we need to be able to pop into outer contexts but not into arbitrarily outside contexts. The trick is to terminate argument tokens with a EOF (and not just with 0 that makes us pop contexts), and deal with that in the few places we have to, This enables some cleanups of the can_read_stream variable use.
15 lines
110 B
Plaintext
15 lines
110 B
Plaintext
X92 M_IFI_1
|
|
X93 KO
|
|
X94 KO
|
|
X95 a
|
|
X96 M_IFI_1
|
|
X97 ok
|
|
X98 (1)(ok, nok)
|
|
X99 ok
|
|
X1 ok
|
|
X2 1
|
|
X3 ok
|
|
X4 1
|
|
X5 nok
|
|
X6 ok
|