[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#635370: busybox: integer overflow in expression on big endian



Source: busybox
Version: 1.18.5-1
Priority: wishlist

include/archive.h:17: warning: integer overflow in expression

Only shown on big endian architectures. Probably best to replace
     17         XZ_MAGIC1a  = ((0xfd * 256 + '7') * 256 + 'z') * 256 + 'X',
with XZ_MAGIC1a = 0xFD377A58UL directly instead.

The little endian case is probably fine because 0xFD has bit7 on, 'X' off.



Reply to: