Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
The reason is that the function return value is a -1 on error, however
This was found with Address Sanitizer.
The reason is that the function return value is a -1 on error, however the variable to store that is unsigned, therefore it is unable to store the error value and will underflow. The subsequent check will therefore not catch the error. To fix this change content_len from gsize (unsigned) to gssigned (signed). This was found with Address Sanitizer. Signed-off-by: Hanno Böck <firstname.lastname@example.org>