wireshark/ui/qt/utils
John Thacker 87441e45d8 Qt: minizip and minizip-ng size compatibility issues
MS-DOS Date and MS-DOS Time are packed 16-bit values
(https://learn.microsoft.com/en-us/windows/win32/sysinfo/ms-dos-date-and-time)
and when combined they make a 32-bit value.

In the original minizip that comes with zlib, the combined dosDate
parameter is a uLong, which is 64 bits on LP64 platforms. In minizip-ng,
it is a uint32_t.

At one point, minizip-ng renamed the dosDate struct member of
zip_fileinfo to dos_date, but more recent versions changed it back
to dosDate for compatibility, except the size remains different,
so our compatibility check can't distinguish the size.

clang (and possibly other compilers) complain about shortening a 64 bit
unsigned long to a uint32_t so make the return value from our
qDateToDosDate a uint32_t as it should be to avoid warnings on
distributions with minizip-ng

Also the maximum year value that can be stored in the format is
127, since it occupies bits 9-15 of the MS-DOS Date. (There was
probably some confusion since the maximum year is 2107, but its
offset from 1980, not 1900.)
2022-10-12 22:03:34 -04:00
..
color_utils.cpp
color_utils.h
data_printer.cpp Add copy as a Base64 string 2022-10-04 12:36:25 +00:00
data_printer.h Add copy as a Base64 string 2022-10-04 12:36:25 +00:00
field_information.cpp Qt: Properly truncate our FieldInformation strings. 2022-10-11 16:59:32 +00:00
field_information.h
frame_information.cpp
frame_information.h
idata_printable.h
proto_node.cpp Replace the last of PROTO_ITEM_ macro calls with function calls 2022-09-29 05:59:12 +00:00
proto_node.h
qt_ui_utils.cpp Require Qt 5.9 or later 2022-04-20 18:59:32 -04:00
qt_ui_utils.h Qt: Recommend 5.12 and enforce 5.10 2022-07-13 21:26:46 +00:00
rtp_audio_file.cpp
rtp_audio_file.h
rtp_audio_routing.cpp
rtp_audio_routing.h
rtp_audio_routing_filter.cpp
rtp_audio_routing_filter.h
rtp_audio_silence_generator.cpp
rtp_audio_silence_generator.h
stock_icon.cpp
stock_icon.h
tango_colors.h
variant_pointer.h
wireshark_mime_data.cpp
wireshark_mime_data.h
wireshark_zip_helper.cpp Qt: minizip and minizip-ng size compatibility issues 2022-10-12 22:03:34 -04:00
wireshark_zip_helper.h