[oi-dev] What changed between glib versions?

Alan Coopersmith alan.coopersmith at oracle.com
Wed May 11 22:26:34 UTC 2022


On 4/8/22 16:27, Alan Coopersmith wrote:
> Something that one of our engineers has recently discovered while
> looking into a different HAL issue (problems with the power button
> signalling) is that HAL appears to include a NULL byte at the end
> of the messages it sends, which g_utf8_get_char_validated() rejects
> now, due to:
> 
> https://gitlab.gnome.org/GNOME/glib/-/commit/568720006cd1da3390c239915337ed0a56a23f2e 
> 
> https://gitlab.gnome.org/GNOME/glib/-/issues/1052
> 
> which appears to cause g_io_channel_fill_buffer() to read the message
> from the pipe, but then not process it.

The fix that engineer came up with is now visible at:
https://gitlab.freedesktop.org/alanc/hal/-/commit/8865b8583d96587c9bd2f80b51996b7b0e5681bd

which only covers half of what Gary had suggested in the illumos bug:
https://www.illumos.org/issues/14227

but as noted above, they were chasing different symptoms.

	-alan-



More information about the oi-dev mailing list