Closed GoogleCodeExporter closed 8 years ago
So I found the reason these errors are only hitting now. Just a week ago I
installed an update to qt-devel (qt-4.7.3-6.fc14.src.rpm) that must now default
to -fstack-protector being a compile flag now. Anyway, I'll take a stab at
finding the overruns and fixing them.
Original comment by torr...@gmail.com
on 6 Aug 2011 at 2:50
Here's a patch that fixes the buffer overruns that were causing glibc to abort
eepe. The fix in mdichild.cpp should be okay as it looks like buf is long
enough to handle anything, so shortening the buf by one byte when converting to
ascii will work. I though that giving QString::fromAscii a length of 20 would
work, but it still crashes, so I had to give it 19 instead.
Original comment by torr...@gmail.com
on 7 Aug 2011 at 4:00
Attachments:
Thanks, I'll add it.
Original comment by erezra...@gmail.com
on 7 Aug 2011 at 4:15
Seems to work fine. I guess I live a sheltered life working on Mint/Ubuntu.
I'll close this issue but feel free to keep on posting either here or to other
issues.
Original comment by erezra...@gmail.com
on 7 Aug 2011 at 4:18
So just for your information, if you add "-fstack-protector" to the compile
flags (and maybe -D_FORTIFY_SOURCE=2), then Qt should abort (via glibc) when a
buffer is overrun. This is how Qt is configured on Fedora.
Original comment by torr...@gmail.com
on 7 Aug 2011 at 5:13
Did this patch get applied? I updated the source code to r271 and the changes
aren't there.
Original comment by torr...@gmail.com
on 29 Sep 2011 at 11:58
Original issue reported on code.google.com by
torr...@gmail.com
on 5 Aug 2011 at 9:01