Re: [hackers] [quark] Prevent overflow in strtonum()-parameters || Laslo Hunhold

From: Laslo Hunhold <dev_AT_frign.de>
Date: Sun, 1 Nov 2020 13:40:10 +0100

On Sun, 1 Nov 2020 11:17:42 +0100
Quentin Rameau <quinq_AT_fifth.space> wrote:

Dear Quentin,

> SIZE_MAX is the tangible guarantee for the upper limit of size_t.

indeed, but strtonum's maxval argument is a signed long long, and given
size_t can be unsigned long long, we could overflow it.

With best regards

Laslo
Received on Sun Nov 01 2020 - 13:40:10 CET

This archive was generated by hypermail 2.3.0 : Sun Nov 01 2020 - 13:48:30 CET