Skip to content

* libwget/http.c: Avoid signed integer overflow due to intermediate ptrdiff_t by casting operands to uintptr_t

Created by: akashrawal

When two pointers are subtracted, the resultant is a signed integer ptrdiff_t which might not be able to hold the resultant value. That is what is happening in bug #158 (closed).

This fixes bug #158 (closed).

Merge request reports

Loading