History of AFNI updates  

|
September 19, 2013 10:45PM
our fellas ran into this issue, which boiled down to finding [sourceware.org] and reading man 3 printf (search for NOTES and/or undefined). Page [web.mit.edu] even includes grep on afni for points to fix... meanwhile here is the result of such undefined behavior unfortunately with our NeuroDebian build where we use
-D_FORTIFY_SOURCE=2
since few months back (I really need to cook up more tests ;) )

$> /usr/lib/afni/bin/ccalc -eval 1000 \* 10 
10.000000
$> /usr/lib/afni/bin/ccalc -eval '1000 * 10'  
10000.000000

As a workaround I will disable fortification for now in our build.
Subject Author Posted

undefined behavior of sprintf(buf, "%s", buf)

yarikoptic September 19, 2013 10:45PM

Re: undefined behavior of sprintf(buf, "%s", buf)

Bob Cox September 20, 2013 06:39AM

Re: undefined behavior of sprintf(buf, "%s", buf)

yarikoptic September 20, 2013 02:21PM

Re: undefined behavior of sprintf(buf, "%s", buf)

Bob Cox September 20, 2013 02:42PM

Re: undefined behavior of sprintf(buf, "%s", buf)

yarikoptic September 21, 2013 07:10PM

Re: undefined behavior of sprintf(buf, "%s", buf)

yarikoptic September 21, 2013 11:23AM