wget-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wget2 | wget2 segmentation fault in wget_hpkp_db_check_pubkey (#617)


From: Fazal Majid (@fazalmajid)
Subject: Re: wget2 | wget2 segmentation fault in wget_hpkp_db_check_pubkey (#617)
Date: Sat, 26 Nov 2022 22:27:55 +0000



Fazal Majid commented:


Rebuilt with -g -O0 and it seems the crash is on getting a NULL `host`:

```
zbuild ~/build>gdb /usr/local/bin/wget2 core
...
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/bin/wget2...
[New LWP 2166]
[New LWP 2167]
[New LWP 2165]
Core was generated by `wget2 -c 
http://ftp.gnome.org/pub/gnome/sources/glib/2.74/glib-2.74.2.tar.xz'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f9915fe1604 in wget_hpkp_db_check_pubkey (hpkp_db=0x7f9915fc25f0, 
    host=0x0, pubkey=0x7f991572acc0, pubkeysize=294) at hpkp_db.c:158
158             for (const char *domain = host; *domain && !hpkp; domain = 
strchrnul(domain, '.')) {
[Current thread is 1 (LWP 2166)]
```

-- 
Reply to this email directly or view it on GitLab: 
https://gitlab.com/gnuwget/wget2/-/issues/617#note_1186803251
You're receiving this email because of your account on gitlab.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]