md4c icon indicating copy to clipboard operation
md4c copied to clipboard

Valgrind error: "Conditional jump or move depends on uninitialised value(s)"

Open chowette opened this issue 3 years ago • 1 comments

See this file

1. list item


problem with 2 line after a list

"Conditional jump or move depends on uninitialised value(s)" This is related to the patch #6 and point to this line https://github.com/mity/md4c/blob/e9ff661ff818ee94a4a231958d9b6768dc6882c9/src/md4c.c#L5897

chowette avatar Apr 26 '22 20:04 chowette

I just checked the code and didn't find anything suspicious.

What it does is makes a pointer at ctx->block_bytes but with shifted address (+ ctx->n_block_bytes - sizeof(MD_BLOCK) )

IMO the only reason of "Conditional jump or move depends on uninitialised value(s)" is because of some mistake on address shifting calculation. It may be beyond MD_BLOCK structure location.

@mity would you kindly comment on that?

xdevelnet avatar Apr 30 '22 09:04 xdevelnet

Unable to reproduce (tried release 0.4.8 and current head).

mity avatar Jan 10 '24 22:01 mity