Skip to contentSkip to conversation

Possible bug in siginfo64to32()

Linux-ia64 David Engebretsen 2 participants 2 messages May 2, 2001

lore
Share & tools
lore
#0 lore raw

Although I do not work on linux-ia64, I believe we found a bug bringing up PPC64 with some regression tests that also exists in the IA64 code that someone might want to look into.

In arch/ia64/ia32/sys_ia32.c, the function siginfo64to32(siginfo_t32 *d, ...)
does the following:
memset(&d, 0, sizeof(siginfo_t32));

Seems like the &d should just be d.

Is this a legitimate bug, or are we missing something here?

Thanks -

Dave Engebretsen
Linux on PowerPC Development, IBM Rochester
Internal : ibmusm07(engebret), T/L 8-553-2925
External : [email protected], (507) 253-2925

#1 lore raw

Dave-

Certainly looks like a bug to me. Makes you wonder how the code ever worked.

Thanks for spotting it.

Quoted 25 lines · David Engebretsen

Although I do not work on linux-ia64, I believe we found a bug bringing up PPC64 with some regression tests that also exists in the IA64 code that someone might want to look into.

In arch/ia64/ia32/sys_ia32.c, the function siginfo64to32(siginfo_t32 *d, ...)
does the following:

   memset(&d, 0, sizeof(siginfo_t32));

Seems like the &d should just be d.

Is this a legitimate bug, or are we missing something here?

Thanks -

Dave Engebretsen
Linux on PowerPC Development, IBM Rochester
Internal : ibmusm07(engebret), T/L 8-553-2925
External : [email protected], (507) 253-2925

_______________________________________________
Linux-IA64 mailing list
[email protected]
http://lists.linuxia64.org/lists/listinfo/linux-ia64

Signature · 4 lines
Don Dugger
"Censeo Toto nos in Kansa esse decisse." - D. Gale
[email protected]
Ph: 303/938-9838