[Nasm-bugs] [Bug 3392544] Global-buffer-overflow problem in function crc64ib in crc64.c

noreply-nasm at dev.nasm.us noreply-nasm at dev.nasm.us
Sun Oct 27 14:46:07 PDT 2019


https://bugzilla.nasm.us/show_bug.cgi?id=3392544

--- Comment #6 from Alex Xu <xiangzhex at gmail.com> ---
I just found that in a newer commit (23rd Oct 2019), the problem has been
solved. There's an inline function named "crc64_byte" defined in file
"hashtbl.h". This function seems dealing with the typecasts correctly.

```c
static inline uint64_t crc64_byte(uint64_t crc, uint8_t v)
{
    extern const uint64_t crc64_tab[256];
    return crc64_tab[(uint8_t)(v ^ crc)] ^ (crc >> 8);
}
```

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.


More information about the Nasm-bugs mailing list