Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
tao_idl crashed with a wstring literal #984
iguessthislldo left a comment
Confirming this is a bug:
Given IDL like:
And this does fix that, but:
This is something I wish I would have known about before, because this is dumb, especially to comment them out without an explanation. There are a few more at least in this file, can you uncomment them?
Changing this requires being able to regenerate the IDL parser using bison and flex with
Alright so I was a little confused at first because I did what I suggested, but valgrind was saying my free was off by 2 bytes and there was still a memory leak:
But it turns out it is getting offset by two when the literal is being processed:
I've fixed that by returning a copy of the offset string and deleting the original. I will push my changes shortly.
@mitza-oci I went ahead and made the change you wanted in gperf, adding an option to skip