bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/2] printf: fix heap buffer overflow in printf_builtin


From: Andreas Schwab
Subject: Re: [PATCH 1/2] printf: fix heap buffer overflow in printf_builtin
Date: Thu, 29 Aug 2024 17:24:33 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

On Aug 29 2024, Andrey Kovalev wrote:

> -      for (fmt = format; *fmt; fmt++)
> +      for (fmt = format; fmt - format < strlen(format); fmt++)

How is that different (apart from turing a linear runtime into quadratic
runtime)?

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]