Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123976 - app-admin/otpcalc-0.97 segmentation violation
Summary: app-admin/otpcalc-0.97 segmentation violation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Tavis Ormandy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-24 12:49 UTC by Ulrich Müller
Modified: 2006-02-24 14:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Proposed patch for otpcalc-0.97.ebuild (otpcalc-0.97.ebuild.diff,359 bytes, patch)
2006-02-24 12:50 UTC, Ulrich Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 :)