Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 370475 - sci-libs/itpp-4.2 - FastICA accesses unallocated memory/ bails out if whitening reduces dimension
Summary: sci-libs/itpp-4.2 - FastICA accesses unallocated memory/ bails out if whiteni...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Markus Dittrich (RETIRED)
URL: https://sourceforge.net/projects/itpp...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-07 16:04 UTC by Gert Wollny
Modified: 2012-05-16 18:04 UTC (History)
1 user (show)

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


Attachments
Patch that corrects the described problem (itpp-4.2-fastica-correct-dim.patch,932 bytes, patch)
2011-06-07 16:05 UTC, Gert Wollny
Details | Diff
Test case that triggers the bug. (main.cc,914 bytes, text/plain)
2011-06-07 16:07 UTC, Gert Wollny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gert Wollny 2011-06-07 16:04:58 UTC
In the first step, FastICA runs a whitening  that may return a matrix with a lower dimension then the requested number of independent components. 
If the library is compiled with debug, this will trigger an assertion failure, and without the debug flag, unallocated memory is accessed. 

Reproducible: Always

Steps to Reproduce:
A test case is attached that triggers the bug. To see the bug either compile the library with debug use flag enabled or run it with valgrind. 
Actual Results:  
Assertion fails or unallocated memory is accessed. 

Expected Results:  
test passes
Comment 1 Gert Wollny 2011-06-07 16:05:45 UTC
Created attachment 276155 [details, diff]
Patch that corrects the described problem
Comment 2 Gert Wollny 2011-06-07 16:07:42 UTC
Created attachment 276157 [details]
Test case that triggers the bug.

Compile the test case with 
  g++ -o testicabug -litpp main.cc
Comment 3 Sébastien Fabbro (RETIRED) gentoo-dev 2011-06-09 16:58:27 UTC
thanks a lot for the patch! make sure you submit it upstream as well.
Comment 4 Gert Wollny 2012-05-16 18:04:48 UTC
Upstream BUG ID: 3527358