#975736 siege crashes when one of the URLs in a file contains a trailing dollar sign

Package:
siege
Source:
siege
Description:
HTTP regression testing and benchmarking utility
Submitter:
Sven Paulus
Date:
2020-12-15 14:39:03 UTC
Severity:
normal
Tags:
#975736#5
Date:
2020-11-25 19:12:22 UTC
From:
To:
Dear Maintainer,

siege 4.0.7 crashes when called with a file where at least one of the URLs
contains a trailing dollar sign ($).

How to reproduce?

| $ cat a
| https://www.example.com/$
| $ siege -f a
| Segmentation fault

Regards,

Sven

#975736#10
Date:
2020-12-15 14:37:28 UTC
From:
To:
Dear Maintainer,
this crash shows the following backtrace
and leads to this upstream issue:

https://github.com/JoeDog/siege/issues/104

Kind regards,
Bernhard


(gdb) bt
#0  0x00007f6066705b51 in __GI_getenv (name=name@entry=0x0) at getenv.c:39
#1  0x0000559b8b01a190 in evaluate (hash=hash@entry=0x559b8b8c0220, buf=0x559b8b8ad340 "https://www.example.com/$", buf@entry=0x559b8b8c3d20 "\220\002\214\213\233U") at eval.c:70
#2  0x0000559b8b018493 in read_cfg_file (l=l@entry=0x559b8b8c3d50, filename=filename@entry=0x559b8b0365dc <my+220> "a") at cfg.c:144
#3  0x0000559b8b011600 in __urls_setup () at main.c:375
#4  main (argc=3, argv=0x7ffeb5a66dd8) at main.c:403