mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-06 07:58:44 +02:00
glib: Don't require GLIB_DOMAIN to be a NUL-terminated string
The length might be passed explicitly in the field instead, and the string might not have a NUL-terminator as happens for example when passed from the Rust bindings. This might lead to out of bounds reads. Thanks to Sebastian Wiesner for noticing this.
This commit is contained in:
committed by
Philip Withnall
parent
7e4fcb4fa8
commit
5bc28aff95
@@ -707,6 +707,7 @@ functions = [
|
||||
'lstat',
|
||||
'mbrtowc',
|
||||
'memalign',
|
||||
'memmem',
|
||||
'mmap',
|
||||
'newlocale',
|
||||
'pipe2',
|
||||
|
Reference in New Issue
Block a user