In the Linux kernel, the following vulnerability has been resolved: speakup: Fix sizeof() vs ARRAYSIZE() bug The "buf" pointer is an array of u16 values. This code should be using ARRAYSIZE() (which is 256) instead of sizeof() (which is 512), otherwise it can the still got out of bounds.