-
Bug
-
Resolution: Done-Errata
-
Normal
-
CentOS Stream 9
-
None
-
unzip-6.0-58.el9_5
-
No
-
Moderate
-
rhel-plumbers
-
ssg_core_services
-
26
-
1
-
False
-
False
-
-
None
-
None
-
Pass
-
Not Needed
-
Automated
-
All
-
None
zipinfo, which is provided by package unzip, does an invalid memory access when printing it usage.
This leads to garbage being written to the console, or even crash:
run 1:
miscellaneous options: -h print header line -t print totals for listed files or for all -z print zipfile comment -T? print file times in sortable decimal format ?-C be case-insensitive 4l?????```??`????????????????????????????????
run 2:
miscellaneous options: -h print header line -t print totals for listed files or for all -z print zipfile comment `-T? print file times in sortable decimal format ?-C? be case-insensitive (null) -x exclude filenames that follow from listing
run 3:
miscellaneous options: -h print header line -t print totals for listed files or for all -z print zipfile comment ?-T? print file times in sortable decimal format -Cv be case-insensitive 20 April 2009 -x exclude filenames that follow from listing
run 4:
segmentation fault
The problem happens because a call to sprintf is made with several '%c' modifiers, but without passing proper arguments.
This generates also several compiler warnings, which were ignored until now.
The bug was introduced by this patch:
https://src.fedoraproject.org/rpms/unzip/blob/rawhide/f/unzip-6.0-alt-iconv-utf8.patch
- account is impacted by
-
RHEL-60053 zipinfo help prints garbage and crashes
-
- Closed
-
- links to
-
RHBA-2025:145517 unzip update