Skip to content

glib/gfileutils.c: use 64 bits for value in get_tmp_file()

Alexander Kanavin requested to merge alex.kanavin/glib:fix-tmpfile into main

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

Merge request reports