-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
_zstd: Fix printf format for pledged size errors #146578
Copy link
Copy link
Open
Labels
3.14bugs and security fixesbugs and security fixes3.15new features, bugs and security fixesnew features, 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.15new features, bugs and security fixesnew features, 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
No status
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