Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 123976

Summary: app-admin/otpcalc-0.97 segmentation violation
Product: Gentoo Linux Reporter: Ulrich Müller <ulm>
Component: Current packagesAssignee: Tavis Ormandy (RETIRED) <taviso>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Proposed patch for otpcalc-0.97.ebuild

Description Ulrich Müller gentoo-dev 2006-02-24 12:49:58 UTC
otpcalc-0.97 terminates with segmentation fault when the "Calculate" button is pressed.

The bug is always reproducible on some of the x86 computers here (on some others it doesn't occur).

The problem is at the beginning of function calculate() in file callbacks.c, where hashes[4] is defined but 5 elements are assigned.

A patch for the ebuild is attached.
Comment 1 Ulrich Müller gentoo-dev 2006-02-24 12:50:57 UTC
Created attachment 80619 [details, diff]
Proposed patch for otpcalc-0.97.ebuild
Comment 2 Ulrich Müller gentoo-dev 2006-02-24 12:53:17 UTC
The problem is completely unrelated to bug #123950 reported earlier today, of course.
Comment 3 Tavis Ormandy (RETIRED) gentoo-dev 2006-02-24 14:50:32 UTC
fixed in 0.97-r1, well spotted :)