-
-
Notifications
You must be signed in to change notification settings - Fork 34.6k
_zstd: Fix printf format for pledged size errors #146578
Copy link
Copy link
Closed
Labels
3.14bugs and security fixesbugs and security fixes3.15pre-release feature fixes, bugs and security fixespre-release feature fixes, bugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Metadata
Metadata
Assignees
Labels
3.14bugs and security fixesbugs and security fixes3.15pre-release feature fixes, bugs and security fixespre-release feature fixes, bugs and security fixesextension-modulesC modules in the Modules dirC modules in the Modules dirtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
Status
Done
Problem
In
zstd_contentsize_converter(Modules/_zstd/compressor.c), ValueError messages use the format specifier%ullwhen printingZSTD_CONTENTSIZE_ERROR. The correct C99 format forunsigned long longis%llu;%ullis invalid.Proposed fix
Replace
%ullwith%lluin both error paths.Linked PRs