Files
glib/girepository
Philip Chimento d632c3ab3d girnode: Fix computation of union member offsets
Regression from 501ff95c. Union member offsets are always 0, but we need
to mark them as 'COMPUTED' otherwise they are not written to the
typelib, which results in gi_field_info_get_offset() returning 0xffff.

Since gi_field_info_get/set_field() cannot check that the offset is
within the size of the struct or union, that means poking into invalid
memory addresses.

This also adds some basic tests for GIFieldInfo which would have caught
this bug.

Closes: #3745
2025-09-29 10:50:25 -07:00
..
2024-04-12 15:26:22 +01:00
2025-09-03 21:47:11 +02:00
2025-09-03 21:47:11 +02:00
2024-02-07 21:07:18 +00:00
2024-04-01 11:01:06 +00:00