This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/63806] #UBSAN ignores signed char possible overflow
- From: "y.gribov at samsung dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 10 Nov 2014 13:33:11 +0000
- Subject: [Bug sanitizer/63806] #UBSAN ignores signed char possible overflow
- Auto-submitted: auto-generated
- References: <bug-63806-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63806
--- Comment #2 from Yury Gribov <y.gribov at samsung dot com> ---
I think Marat meant that narrowing cast from int to char can be undefined and
it makes sense to emit some check for it as well.