Skip to content

Backport !3547 “glib/gfileutils.c: use 64 bits for value in get_tmp_file()” to glib-2-76

On 32 bit systems 'long' value will overflow in 2038 and become negative. As it is used to index into letters array, and % operation preserves signs, data corruption will then occur.

Signed-off-by: Alexander Kanavin alex@linutronix.de


Trivial backport of !3547 (merged) to glib-2-76.

Merge request reports