On Jun 21, 8:57 pm, "Brian Smith" <br...@briansmith.org> wrote: > From arcfour.c: > > http://mxr.mozilla.org/mozilla/source/security/nss/lib/freebl/arcfour... > > My guess is that valgrind is considering malloc(5) to allocate 5 bytes, when > really it allocates 8 bytes at least (because of alignment).
Strictly speaking, valgrind is right. There's nothing in the C standard to suggest that malloc(5) allocates more than 5 bytes or that accessing the rest of the word won't segfault, even if that's true on all real systems. -- Matt -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto