[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gprof/29100] Buffer overflow when read function mapping file
From: |
yguoaz at gmail dot com |
Subject: |
[Bug gprof/29100] Buffer overflow when read function mapping file |
Date: |
Tue, 16 Aug 2022 11:53:44 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=29100
--- Comment #2 from yguoaz at gmail dot com ---
(In reply to Alan Modra from comment #1)
> The calculation would need to overflow a size_t, not an int.
Hi, sizeof(size_t) == sizeof(int) may hold in certain platforms (e.g., a 32 bit
machine). In that case, the overflow will happen and the size will wrap to a
small value.
--
You are receiving this mail because:
You are on the CC list for the bug.