[bug #62110] HSTS broken on 32 bit big endian devices

2022-03-17 Thread martian
Follow-up Comment #10, bug #62110 (project wget):

Yeah, I compile wget 1.21.3 with OpenWRT sdk from downloaded
https://downloads.openwrt.org/releases/21.02.2/targets/ath79/generic/openwrt-sdk-21.02.2-ath79-generic_gcc-8.4.0_musl.Linux-x86_64.tar.xz

It's big endian and has 32bit time_t provided by musl 1.1.

The hsts file will be like after downloading a file.

# HSTS 1.0 Known Hosts database for GNU Wget.
# Edit at your own risk.
#
api.github.com  0   1   0   0
codeload.github.com 0   0   0   0
raw.githubusercontent.com   0   0   1638583977  31536000
github.com  0   1   0   0



___

Reply to this item at:

  

___
  Message sent via Savannah
  https://savannah.gnu.org/




[bug #62110] HSTS broken on 32 bit big endian devices

2022-03-17 Thread Petr Pisar
Follow-up Comment #9, bug #62110 (project wget):

Yes, i686 is 32-bit little-endian and GCC supports int64_t there. However, the
original reporter wrote "broken on 32 bit big endian devices".


___

Reply to this item at:

  

___
  Message sent via Savannah
  https://savannah.gnu.org/




[bug #62110] HSTS broken on 32 bit big endian devices

2022-03-17 Thread Michal Ruprich
Follow-up Comment #8, bug #62110 (project wget):

Hi Pert,

thanks for the input. The failing hsts test was on i686 in Fedora and I am no
100% sure but that should be little-endian right?

___

Reply to this item at:

  

___
  Message sent via Savannah
  https://savannah.gnu.org/




[bug #62110] HSTS broken on 32 bit big endian devices

2022-03-17 Thread Petr Pisar
Follow-up Comment #7, bug #62110 (project wget):

That gnulib "int64" code does not work on all platforms. It only works on
platforms where a 64-bit integer type is supported by the compiler (int64_t in
stdint.h). For the sake of completeness, it is supported e.g. by GCC on 32-bit
little-endian x86. I have no idea about the platform of the original reporter.

___

Reply to this item at:

  

___
  Message sent via Savannah
  https://savannah.gnu.org/