New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flexible-array hack: Out of bounds issues in hb-open-type.hh #2953
Comments
The short answer is that C++ does not have a way to specify flexible arrays. GCC / clang allow I've been tracking it in #2067 We might be able to fix this for common compilers soon. I need to sit down and finish it. |
We do run |
Actually #2067 is different issue, that I'm fixing now. I'll retitle this issue. |
I just filed clang and gcc issues that prevents us from using the flexible-array extension: https://bugs.llvm.org/show_bug.cgi?id=50005 |
You can experiment by changing the definition of I remember MSVC had another issue. We can submit a PR to test that. |
Based on feedback from the g++ bug, it's unlikely that we can use flexible-arrays. I agree with suggestions there that the Struct Hack (ie |
Is this |
Gcc
I added almost all available flags to it
|
I don't think there's anything we can do here. |
When compiling Godot with ubsan sanitizer, then I got this errors
This errors points at this lines(Godot use 1 month old library lines are not exactly same)
harfbuzz/src/hb-open-type.hh
Line 595 in a4fb5da
The text was updated successfully, but these errors were encountered: