3 Topics

Member Avatar for
Member Avatar for kandarpa

Hi, I am allocating memory using [B]malloc()[/B] and then I am filling the aloocated memory with "0" using [B]memset()[/B]. The combination of [B]malloc()[/B] and [B]memset()[/B] are being called many times in my project. After adding memset() function affecting my project's performance. So I am searching for the alternative for the …

Member Avatar for N1GHTS
0
3K
Member Avatar for n1csaf3

I am having trouble correctly allocating memory for a parent function that will remain upon the child functions exit. the call to the child function is [code=c]HTTP_packToGen((char*)http_headerContent.HTTP ..[/code] the HTTP variable within http_headerContent is a char pointer that isn't allocated until the child function is called, http_headerContent is a static …

Member Avatar for n1csaf3
0
318
Member Avatar for mrinal.s2008

Hi, the code analysis tool we use gives below warning for the functions in which memset / memcpy is used "The function writes outside the bounds of dup on line 303, which could corrupt data, cause the program to crash, or lead to the execution of malicious code." could someone …

Member Avatar for Fbody
0
219

The End.