Bugs item #2910971, was opened at 2009-12-08 21:02
Message generated for change (Tracker Item Submitted) made by ettlmartin
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=102915&aid=2910971&group_id=2915

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: orbitcowboy (ettlmartin)
Assigned to: Nobody/Anonymous (nobody)
Summary: found an overlapping data buffer in plcore.c at line 967

Initial Comment:


during a check with the static code analysis tool cppcheck
(https://sourceforge.net/projects/cppcheck/) the tool discovered
 an overlapping data buffer in plcore.c at line 967

cppcheck printed:

[plcore.c:967]: (Error) Overlapping data buffer buf

Take a look at the code:

                            snprintf( buf, BUFFER_SIZE, "UTF-8 string is 
malformed: %s%s",
                                buf, strlen( string ) > 30 ? "[...]" : "" );

Indeed the buffer 'buf' overlapps.


Best regards

Ettl Martin

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=102915&aid=2910971&group_id=2915

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to