-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failure on i686 #11
Comments
Interesting, can't reproduce it with gcc 11.4. diff --git a/src/linux/mei.c b/src/linux/mei.c |
Doesn't change anything, unfortunately. |
The issue is that off_t, the last parameter of pread is actually a singed int, hence on i386 in theory the multiplication of uint32 may overflow. Since we already check for fwsts_num < 6 we can safely cast it to off_t (off_t) fwsts_num * FWSTS_LEN I guess it won't complain on all 32 bit systems
|
Can confirm that applying that cast gets rid of the warning. |
Fixed in 4.2.1 |
Unsure if there's any point in this software being built for 32bit systems, but thought I'd share anyway in case you're interested. Noticed this while looking at build failures on Arch Linux 32.
The text was updated successfully, but these errors were encountered: