[Bug middle-end/77673] New: 4-byte load generated instead of 1-byte load, possibly reading past the end of object

2016-09-21 Thread laurynas.biveinis at gmail dot com
Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: laurynas.biveinis at gmail dot com Target Milestone: --- For the following function void mach_parse_compressed(unsigned char* ptr, unsigned long int* val

[Bug middle-end/77673] 4-byte load generated instead of 1-byte load, possibly reading past the end of object

2016-09-21 Thread laurynas.biveinis at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77673 Laurynas Biveinis changed: What|Removed |Added CC||laurynas.biveinis at gmail dot com

[Bug libstdc++/90442] New: std::pmr::new_delete_resource->allocate results in UBSan error member call on address ... which does not point to an object of type 'memory_resource'

2019-05-12 Thread laurynas.biveinis at gmail dot com
rce' Product: gcc Version: 9.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: laurynas.biveinis at gmail dot com Target Milestone: --- Created attachm

[Bug middle-end/102829] New: Redundant null check after atomic load from that address

2021-10-19 Thread laurynas.biveinis at gmail dot com via Gcc-bugs
Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: laurynas.biveinis at gmail dot com Target Milestone: --- The following source code struct d { long b; d *e() { __atomic_load_n(, 0); return this; } }; d *j; void i

[Bug tree-optimization/102829] Redundant null check after atomic load from that address

2021-10-19 Thread laurynas.biveinis at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102829 --- Comment #2 from Laurynas Biveinis --- FWIW adding "if (this == nullptr) __builtin_unreachable();" between __atomic_load_n and return fails to workaround this issue