[Pkg-chromium-maint] Bug#660187: chromium-browser: Entry #3 in data pack points off end of file. Was the file corrupted?
Jonathan Nieder
jrnieder at gmail.com
Wed Jun 13 07:27:51 UTC 2012
Jonathan Nieder wrote:
> I guess I'd suggest
>
> namespace {
>
> uint32 get_unaligned_32(const void *addr)
> {
> uint32 result;
> memcpy(result, addr, sizeof(result);
> return result;
> }
Apparently I can't spell:
uint32 result;
memcpy(&result, addr, sizeof(result));
return result;
(was missing an address-of operator and close-paren). Sorry for the
confusion.
More information about the Pkg-chromium-maint
mailing list