[visit-developers] Quick look over

Allen Sanderson allen at sci.utah.edu
Fri Feb 19 13:28:45 EST 2016


Hi,

I looked over my code ….

> [70072] Width is not specified for 's' conversion specifier. This can result in an overflow of the buffer provided in argument 4 of a call to 'sscanf'. Also there is one similar error on line 1276.
> /nfs/tmp2/chang28/visit/build/src/gui/QvisSimulationWindow.C | UpdateWindow
> Code SV.FMT_STR.BAD_SCAN_FORMAT | Severity: Error(2) | State: New | Status: Analyze | Taxonomy: C and C++ | Created: Thu Feb 18 13:17:12 2016

I am not sure I understand this issue.

> [70076] Suspicious dereference of pointer 'point_counts' before NULL check at line 1151
> /nfs/tmp2/chang28/visit/build/src/operators/LCS/avtLCSFilterFTLE.C | RectilinearGridSingleCalc
> Code RNPD.DEREF | Severity: Critical(1) | State: New | Status: Analyze | Taxonomy: C and C++ | Created: Thu Feb 18 13:17:12 2016


> [70089] Suspicious dereference of pointer 'index_counts' before NULL check at line 1145
> /nfs/tmp2/chang28/visit/build/src/operators/LCS/avtLCSFilterFTLE.C | RectilinearGridSingleCalc
> Code RNPD.DEREF | Severity: Critical(1) | State: New | Status: Analyze | Taxonomy: C and C++ | Created: Thu Feb 18 13:17:12 2016

> [70091] Suspicious dereference of pointer 'point_counts' before NULL check at line 799
> /nfs/tmp2/chang28/visit/build/src/operators/LCS/avtLCSFilterFSLE.C | RectilinearGridIterativeCalc
> Code RNPD.DEREF | Severity: Critical(1) | State: New | Status: Analyze | Taxonomy: C and C++ | Created: Thu Feb 18 13:17:12 2016

> [70097] Suspicious dereference of pointer 'time_counts' before NULL check at line 802
> /nfs/tmp2/chang28/visit/build/src/operators/LCS/avtLCSFilterFSLE.C | RectilinearGridIterativeCalc
> Code RNPD.DEREF | Severity: Critical(1) | State: New | Status: Analyze | Taxonomy: C and C++ | Created: Thu Feb 18 13:17:12 2016

> [70099] Suspicious dereference of pointer 'index_counts' before NULL check at line 796
> /nfs/tmp2/chang28/visit/build/src/operators/LCS/avtLCSFilterFSLE.C | RectilinearGridIterativeCalc
> Code RNPD.DEREF | Severity: Critical(1) | State: New | Status: Analyze | Taxonomy: C and C++ | Created: Thu Feb 18 13:17:12 2016

The five are fine again in conditionals.

> [70080] Null pointer 'normals' that comes from line 2651 may be dereferenced at line 3079. Also there is one similar error on line 3094.
> /nfs/tmp2/chang28/visit/build/src/operators/IntegralCurve/avtIntegralCurveFilter.C | CreateIntegralCurveOutput
> Code NPD.GEN.MIGHT | Severity: Critical(1) | State: New | Status: Analyze | Taxonomy: C and C++ | Created: Thu Feb 18 13:17:12 2016

The above is in a conditional so it missed the allocation
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://elist.ornl.gov/pipermail/visit-developers/attachments/20160219/cfcb5742/attachment.html>


More information about the visit-developers mailing list