https://bugs.kde.org/show_bug.cgi?id=497977
--- Comment #14 from Vincent Lefèvre ---
(In reply to Paul Floyd from comment #13)
> It's saying "(possibly negative)" and giving what would be the negative
> value.
This is still confusing, because with an unsigned size_t, a
https://bugs.kde.org/show_bug.cgi?id=497977
--- Comment #12 from Vincent Lefèvre ---
(In reply to Paul Floyd from comment #11)
> In this case both signed and unsigned values are nonsense. I don't see that
> as much of an improvement.
The issue is not the value itself, but the fact th
https://bugs.kde.org/show_bug.cgi?id=497977
--- Comment #10 from Vincent Lefèvre ---
(In reply to Florian Krohm from comment #9)
> I agree that this message could be improved. Clearly, the bit pattern being
> passed as 'size' argument is being
> interpreted as an unsigned
https://bugs.kde.org/show_bug.cgi?id=497977
--- Comment #8 from Vincent Lefèvre ---
You did not understand. Such huge values are precisely used to check the
correct handling of allocation failures in a testsuite.
Note that they may also occur in production, e.g. in arbitrary-precision
software
https://bugs.kde.org/show_bug.cgi?id=497977
--- Comment #6 from Vincent Lefèvre ---
The point is that the current message is misleading. It gives the impression
that size_t is signed, while it is actually unsigned. At least it should not
give incorrect information to a user who deliberately
https://bugs.kde.org/show_bug.cgi?id=497977
--- Comment #4 from Vincent Lefèvre ---
The GCC output is helpful in the sense that it shows that the value is huge;
the exact value really does not matter: malloc will fail to allocate the memory
for any size of this order of magnitude. The "it
https://bugs.kde.org/show_bug.cgi?id=497977
--- Comment #2 from Vincent Lefèvre ---
I can understand that valgrind outputs a message, but the cast to the signed
type should just be internal to valgrind. The output message should show the
actual value.
--
You are receiving this mail because
https://bugs.kde.org/show_bug.cgi?id=497977
Bug ID: 497977
Summary: valgrind thinks that size_t is signed
Classification: Developer tools
Product: valgrind
Version: 3.19.0
Platform: Other
OS: Linux
Status: REPOR
https://bugs.kde.org/show_bug.cgi?id=197915
Vincent Lefèvre changed:
What|Removed |Added
CC||vincent-...@vinc17.net
--
You are receiving
https://bugs.kde.org/show_bug.cgi?id=421262
Vincent Lefèvre changed:
What|Removed |Added
CC||vincent-...@vinc17.net
--- Comment #1 from
10 matches
Mail list logo