Re: Alignment trap in stackgap under arm eabi.
Enrico Scholz <[email protected]> Tue, 26 Jan 2016 13:53:11 +0100
| Newsgroups | gmane.linux.lib.dietlibc |
|---|---|
| Message-ID | <[email protected]> |
[email protected] writes: > if (!rand) { > char myrand[10]; > ... > rand=myrand; > } > ... > s=*(unsigned short*)(rand+8); has an undefined behavior in the '!rand' case ('rand' points to out-of-scope memory when reading it). Enrico