Gottox / sqsh-tools

🗜️ fast r/o squashfs implementation written in C.
https://gottox.de/sqsh-tools/
BSD 2-Clause "Simplified" License
37 stars 4 forks source link

cextras: update to new main #297

Closed Gottox closed 1 week ago

Gottox commented 1 week ago

This update fixes a malbehaviour on 32bit systems, where the cextras library would calculate the wrong size for array resizing.

The corresponding commit in cextras is 2777280db867664211f072fc4bd6173a781ec8d4.

            return -CX_ERR_INTEGER_OVERFLOW;
        }
        // Set the bit at the position of the first 0 to 1
-       *val = 1ULL << (sizeof(size_t) * 8 - leading_zeros);
+       *val = 1ULL << (sizeof(long long) * 8 - leading_zeros); } return 0; }

https://github.com/Gottox/cextras/commit/2777280db867664211f072fc4bd6173a781ec8d4

sonarcloud[bot] commented 1 week ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 64.08%. Comparing base (a2c1f41) to head (d460410). Report is 2 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #297 +/- ## ======================================= Coverage 64.08% 64.08% ======================================= Files 75 75 Lines 5898 5898 Branches 903 903 ======================================= Hits 3780 3780 Misses 1580 1580 Partials 538 538 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.