Bug#315774: grub not safe for compiler optimization

Tormod Volden debian.tormod at gmail.com
Sun Jun 24 21:01:59 UTC 2007


Package: grub
Version: 0.97-29
Followup-For: Bug #315774

I ran into the same segfaults when I compiled grub using gcc 4.1. It 
turned out the handling (pointer arithmetics) of variable arguments in 
char_io.c goes bad due to optimization. I replaced it with va_arg macros 
and the segfaults went away.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcc-va_arg.diff
Type: text/x-c
Size: 2296 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20070624/ef4b2f5f/attachment-0001.bin 


More information about the Pkg-grub-devel mailing list