> (I'd expect an exception to be raised instead.) > > > PIR code: > > ..sub 'foo' :main > $S0 = null > $P0 = open $S0, '<' > ..end > > output: > src/string.c:2106: failed assertion 's'
Fixed in r31565 , but several questions opened: Where to put a test for this? There is no t/ops/io.t and creating a file for each io opcode seems excessive Care must be taken in all places that uses string_to_cstring after some resource allocation (for example, other string_to_cstring) to avoid leaks. -- Salu2