Closed mhoffm-aiven closed 10 months ago
@erik-overdahl can you check this branch out and verify please?
@amaanq the memcpy in context_new looked fishy to me! maybe a "STRING_GROW" would have fixed it too though.
That makes sense, I sorta translated the C++ scanner to C almost verbatim and didn't think about bits that shouldn't have made it through or should've been tweaked a bit...good catch! (But Bash is just very different in general because heredocs can be nested)
I have no idea what's up with the windows gcc CI failure
Yeah but the macros probably should be fairly similar! The windows ci failure is the action not being able to start. I assume it's too old of a version, I'll fix it in subsequent PR
Yep I agree they should be similar, I think not putting in default strings in a new context is the actual fix, but this and your other macro changes to be similar to bash LGTM!
@amaanq can you have a look please? I copied over the macros from bash and fixed the string handling in the contexts ( i think ).
Valgrind seems happy and gdb seems happy with the repro