Quantcast
Channel: Product Communities
Viewing all articles
Browse latest Browse all 105279

Forum Post: Re: mdlKISolid_getSurfaceElements() crashes for a particular element, throwing a stack overflow exception

$
0
0

[quote user="Chris Zakrewsky"]out of bounds memory overwrite(s)[/quote]

Good point, Chris! 

char buffer [12];

strcpy (buffer, "That tip also covers string buffers that are too short, like this one");

I've tripped myself up many times with that one.  Fortunately I use C++ most of the time these days, so this never hurts:

std::string buffer;

buffer = "C++ string objects automatically allocate sufficient memory";


Viewing all articles
Browse latest Browse all 105279

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>