Regarding using strcmp instead of memcmp
Hi I am trying to run free radius code with purify , it is giving errors as UMR: Uninitialized memory read (13 times) in memcmp Reading 5 bytes from 0xffbdd108 on the stack (1 byte at 0xffbdd10c uninit). Address 0xffbdd108 is 4 bytes past start of local variable "cs" in function So can I use strcmp instead of memcmp . because if I use strcmp instead of memcmp the error is not coming Please I would be grateful if u can provide some useful information regarding this Thanks & regards Ravi ============================================================================================================================ Tech Mahindra, formerly Mahindra-British Telecom. Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech Mahindra. ============================================================================================================================
"Ravi S M" <smravi@TechMahindra.com> wrote:
I am trying to run free radius code with purify , it is giving errors as
UMR: Uninitialized memory read (13 times) in memcmp=0D
Reading 5 bytes from 0xffbdd108 on the stack (1 byte at 0xffbdd10c uninit).
Address 0xffbdd108 is 4 bytes past start of local variable "cs" in function
... which function? It's nice that there's a bug report, but you haven't given us any information that will let us fix it.
So can I use strcmp instead of memcmp . because if I use strcmp instead of memcmp the error is not coming
That's nice... do you have a patch?
Please I would be grateful if u can provide some useful information regarding this
What would you have us say? It looks like you found a bug, but until you tell us where, we can't do a thing to help you. Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog
participants (2)
-
Alan DeKok -
Ravi S M