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 upGitHub 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.
fix format-truncation on 64bit #1462
Conversation
GCC 10.x rightfully complains about out-of-bounds snprintf operation on 64bit systems, where size_t could be 64bit sized. Cast bytes_read down to 32bit and printf it without specifying input format Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
6c635f9
to
76dded3
|
@BrandonStaab anything I can do to get this merged? |
GCC 10.x rightfully complains about out-of-bounds snprintf operation
on 64bit systems, where size_t could be 64bit sized.
Cast bytes_read down to 32bit and printf it without specifying input
format
Fixes #1461
Signed-off-by: Konrad Weihmann kweihmann@outlook.com