Skip to content

Commit f264eb5

Browse files
committed
docs + credits + misc.
1 parent 1e0be70 commit f264eb5

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22

33
### v. 0.7.3
44

5-
**Fix**: (`fio`) fixes an issue where timer cleanup wasn't performed after `fio_stop` (or SIGINT/SIGTERM). No a "clean slate" will be provided if `fio_start` is called more then once. Note: this may **break previous behavior**, which should be considered undocumented and unexpected behavior. (this fax **may** be deferred to version 0.8.x, still undecided). Credit to @fbrausse for opening issue #72.
5+
**Fix**: (`http`) fixes a security issue in the static file name resolution logic, where a maliciously encoded request could invoke an arbitrary response.
66

7-
**Fix**: (`fio`) fixes an issue where timer cleanup would be performed after the `AT_EXIT` state callbacks. Now the timer cleanup callbacks will be performed **before** the `AT_EXIT` callback (as they should). (See issue #72).
7+
**Fix**: (`fio`) fixes an issue where setting a different value to `FIO_SLOWLORIS_LIMIT` was being ignored.
8+
9+
**Fix**: (`fio`, `fiobj`) improved C++ compatibility. Credit to Joey (@joeyhoek) for PR #76.
10+
11+
**Fix**: (`fio`) fixes an issue where timer cleanup wasn't performed after `fio_stop` (or SIGINT/SIGTERM). No a "clean slate" will be provided if `fio_start` is called more then once. Note: this may **break previous behavior**, which should be considered undocumented and unexpected behavior. (this fax **may** be deferred to version 0.8.x, still undecided). Credit to @fbrausse for opening issue #72.
812

913
**Fix**: (`fio`) fixes an issue where timer cleanup would be performed after the `AT_EXIT` state callbacks. Now the timer cleanup callbacks will be performed **before** the `AT_EXIT` callback (as they should). (See issue #72).
1014

lib/facil/fio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2970,7 +2970,7 @@ ssize_t fio_flush(intptr_t uuid) {
29702970
goto test_errno;
29712971
}
29722972

2973-
if (uuid_data(uuid).packet_count >= 1024 &&
2973+
if (uuid_data(uuid).packet_count >= FIO_SLOWLORIS_LIMIT &&
29742974
uuid_data(uuid).packet == old_packet &&
29752975
uuid_data(uuid).sent >= old_sent &&
29762976
(uuid_data(uuid).sent - old_sent) < 32768) {

lib/facil/http/http.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,9 @@ static inline int http_test_encoded_path(const char *mem, size_t len) {
363363
while (mem < end && (pos = memchr(mem, '/', (size_t)len))) {
364364
len = end - pos;
365365
mem = pos + 1;
366-
if (len >= 1 && pos[1] == '/')
366+
if (pos[1] == '/')
367367
return -1;
368-
if (len > 3 && pos[1] == '.' && pos[2] == '.' && pos[4] == '/')
368+
if (len > 3 && pos[1] == '.' && pos[2] == '.' && pos[3] == '/')
369369
return -1;
370370
}
371371
return 0;

0 commit comments

Comments
 (0)