[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #62110] HSTS broken on 32 bit big endian devices
From: |
Tim Ruehsen |
Subject: |
[bug #62110] HSTS broken on 32 bit big endian devices |
Date: |
Sun, 20 Mar 2022 06:53:52 -0400 (EDT) |
Follow-up Comment #12, bug #62110 (project wget):
IMO, the problem is that the code uses a time_t variable and uses sscanf
SCNd64. That means that time_t *must* be a 64bit integer (signed or unsigned
doesn't matter), which is of course not always true.
C99/C11 does not define a format specifier for time_t.
There are several ways to address this, but using SCNd64 is not among them.
In Wget2 we use uint64_t instead of time_t after getting complaints from user
previously. We failed to backport this properly to Wget 1.x, sorry for that.
We should fix these issues once and forever (there might be more code that
needs to be amended beyond hsts.c).
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62110>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #62110] HSTS broken on 32 bit big endian devices, (continued)
- [bug #62110] HSTS broken on 32 bit big endian devices, martian, 2022/03/11
- [bug #62110] HSTS broken on 32 bit big endian devices, Michal Ruprich, 2022/03/15
- [bug #62110] HSTS broken on 32 bit big endian devices, Michal Ruprich, 2022/03/15
- [bug #62110] HSTS broken on 32 bit big endian devices, Michal Ruprich, 2022/03/16
- [bug #62110] HSTS broken on 32 bit big endian devices, martian, 2022/03/16
- [bug #62110] HSTS broken on 32 bit big endian devices, Petr Pisar, 2022/03/17
- [bug #62110] HSTS broken on 32 bit big endian devices, Michal Ruprich, 2022/03/17
- [bug #62110] HSTS broken on 32 bit big endian devices, Petr Pisar, 2022/03/17
- [bug #62110] HSTS broken on 32 bit big endian devices, martian, 2022/03/17
- [bug #62110] HSTS broken on 32 bit big endian devices, Petr Pisar, 2022/03/18
- [bug #62110] HSTS broken on 32 bit big endian devices,
Tim Ruehsen <=
- [bug #62110] HSTS broken on 32 bit big endian devices, Tim Ruehsen, 2022/03/20
- [bug #62110] HSTS broken on 32 bit big endian devices, martian, 2022/03/20
- [bug #62110] HSTS broken on 32 bit big endian devices, Tim Ruehsen, 2022/03/20
- [bug #62110] HSTS broken on 32 bit big endian devices, Michal Ruprich, 2022/03/21