Hash :
23a28f5a
Author :
Date :
2021-04-16T13:22:05
Avoid undefined-behavior If a struct had (because it's a union) sizeof that is larger than the null_size, we were providing only null_size bytes for its Null object. We know we'd never access beyond that, but is undefined-behavior nonetheless according to the standard. The alternative fix would have required use of flexible-arrays, which are not standard and have their own issues in various compiler. We've discussed that extensively in the follow Mozilla issue (currently locked; I've asked that it be opened): https://bugzilla.mozilla.org/show_bug.cgi?id=1577584 Part of https://github.com/harfbuzz/harfbuzz/pull/2067
This is HarfBuzz, a text shaping library. For bug reports, mailing list, and other information please visit: http://harfbuzz.org/ For license information, see https://github.com/harfbuzz/harfbuzz/blob/master/COPYING For build information, see https://github.com/harfbuzz/harfbuzz/blob/master/BUILD.md For custom configurations, see https://github.com/harfbuzz/harfbuzz/blob/master/CONFIG.md For test execution, see https://github.com/harfbuzz/harfbuzz/blob/master/TESTING.md Documentation: https://harfbuzz.github.io
This is HarfBuzz, a text shaping library.
For bug reports, mailing list, and other information please visit:
For license information, see COPYING.
For build information, see BUILD.md.
For custom configurations, see CONFIG.md.
For test execution, see TESTING.md.
Documentation: https://harfbuzz.github.io