Package: ledmon / 0.97-1.2

Metadata

Package Version Patches format
ledmon 0.97-1.2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0002 To cast uint64_t for shift to prevent Werror shift c.patch | (download)

src/amd_sgpio.c | 2 1 1 - 0 !
1 file changed, 1 insertion( ), 1 deletion(-)

 to cast uint64_t for shift to prevent -werror=shift-count-overflow


correct get_uint64.patch | (download)

src/utils.c | 8 6 2 - 0 !
1 file changed, 6 insertions( ), 2 deletions(-)

 [patch] correct get_uint64

For large integer values, the existing implementation will be
incorrect.

The current implementation of converting strings to integer values
uses a signed integer for the intermediate conversion and performs
a range check. Since any value in an unsigned 64-bit integer is valid,
the range check seems unnecessary. To mimic the same code path, we would
need a larger integer type.

Signed-off-by: Tony Asleson <[email protected]>