Undefined behavior in GSlice timestamp computation
Submitted by Slava Barinov
Link to original bug (#770438)
Description
gcc -fsanitize=undefined reports gslice.c:594:41: runtime error: signed integer overflow: 1472211562 * 1000 cannot be represented in type 'long int'
For line: allocator->last_stamp = tv.tv_sec * 1000 + tv.tv_usec / 1000; /* milli seconds */
Since tv_sec is signed integer.
Version: 2.48.x