Package: weborf / 0.13.4-3

Metadata

Package Version Patches format
weborf 0.13.4-3 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 Fix segmentation fault caused by underflow.patch | (download)

utils.c | 30 21 + 9 - 0 !
1 file changed, 21 insertions(+), 9 deletions(-)

 [patch] fix segmentation fault caused by underflow

When listing a very large directory, weborf would create a segmentation
fault, because the remaining space in the buffer might not be equal to zero and be negative
instead, which was not considered as a terminating condition.

Now the listing terminates and frees up before returning an error code.

0002 Correctly log list failure due to large directory.patch | (download)

instance.c | 12 11 + 1 - 0 !
1 file changed, 11 insertions(+), 1 deletion(-)

 [patch] correctly log list failure due to large directory

Since the HTML to list a directory is generated and then sent all at once, the size
is limited.

This sends a 507 HTTP code to the client and logs a clear message of what happened.