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

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

I compile PR#31 on 32bit mips big endian with musl 1.1 and 1.2, both work as
expected.


___

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 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-16 Thread martian
Follow-up Comment #6, bug #62110 (project wget):

IMO, the following code should always get the correct result on any platform.
If not, that should be a bug of gnulib.

int64 x;
sscanf(buf, "%" SCNd64, );


___

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-11 Thread martian
Follow-up Comment #2, bug #62110 (project wget):

Excuse me, what failure did you get? I'm not getting any problems.


___

Reply to this item at:

  

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




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

2022-02-24 Thread martian
URL:
  <https://savannah.gnu.org/bugs/?62110>

 Summary: HSTS broken on 32 bit big endian devices
 Project: GNU Wget
Submitted by: martian
Submitted on: Thu 24 Feb 2022 10:50:28 AM UTC
Category: Feature Request
Severity: 3 - Normal
Priority: 5 - Normal
  Status: None
 Privacy: Public
 Assigned to: None
 Originator Name: 
Originator Email: 
 Open/Closed: Open
 Release: trunk
 Discussion Lock: Any
Operating System: GNU/Linux
 Reproducibility: Every Time
   Fixed Release: None
 Planned Release: None
  Regression: None
   Work Required: None
  Patch Included: Yes

___

Details:

e1bacd2fa5f026f9493bd74e9179b859fa9ce8f1 fix the 64 bit time_t, but break the
behavior on 32 bit big endian devices




___

File Attachments:


---
Date: Thu 24 Feb 2022 10:50:28 AM UTC  Name:
fix-hsts-time-on-mips-musl1.1.patch  Size: 787B   By: martian

<http://savannah.gnu.org/bugs/download.php?file_id=52918>

___

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62110>

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




[bug #61451] Error reading hsts database on mips_24kc with musl 1.2

2021-12-02 Thread martian
Follow-up Comment #2, bug #61451 (project wget):

The commit e1bacd2fa5f026f9493bd74e9179b859fa9ce8f1 break the behavior on mips
with musl 1.1

https://github.com/openwrt/packages/pull/17101#issuecomment-984836054


___

Reply to this item at:

  

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




[bug #61451] Error reading hsts database on mips_24kc with musl 1.2

2021-11-09 Thread martian
Additional Item Attachment, bug #61451 (project wget):

File name: fix-hsts-time-intmax_t.patch   Size:2 KB
   




___

Reply to this item at:

  

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




[bug #61451] Error reading hsts database on mips_24kc with musl 1.2

2021-11-09 Thread martian
URL:
  <https://savannah.gnu.org/bugs/?61451>

 Summary: Error reading hsts database on mips_24kc with musl
1.2
 Project: GNU Wget
Submitted by: martian
Submitted on: Tue 09 Nov 2021 04:03:13 PM UTC
Category: Program Logic
Severity: 3 - Normal
Priority: 5 - Normal
  Status: None
 Privacy: Public
 Assigned to: None
 Originator Name: zhanhb
Originator Email: 
 Open/Closed: Open
 Release: None
 Discussion Lock: Any
Operating System: GNU/Linux
 Reproducibility: Every Time
   Fixed Release: None
 Planned Release: None
  Regression: None
   Work Required: None
  Patch Included: None

___

Details:

Got zero created and max-age on mips_24kc_musl

Openwrt is now working with musl 1.2, which has 64bit time_t and long on
platform mips_24kc is 32bit only.

Also see:
https://github.com/openwrt/packages/pull/17101



___

File Attachments:


---
Date: Tue 09 Nov 2021 04:03:13 PM UTC  Name: fix-hsts-time.patch  Size: 2KiB  
By: martian

<http://savannah.gnu.org/bugs/download.php?file_id=52228>

___

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61451>

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