Registry / utility / ltla-sanisizer

ltla-sanisizer

JSON →
library0.2.0vcpkgunverified

Library that provides a few methods for sanitizing size values so that any overflow results in an error

vcpkg install ltla-sanisizer
INSTALL
IMPORT
SIG · LTLA-SANISIZER
L
ltla-sanisizer
utilitycppv0.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

sanisizer/sanisizer.h
#include <sanisizer/sanisizer.h>

Check for overflow in multiplication

#include <sanisizer/sanisizer.h> #include <iostream> int main() { size_t a = 100, b = 200; auto result = sanisizer::checked_mul(a, b); if (result) { std::cout << "Product: " << *result << "\n"; } else { std::cout << "Overflow detected!\n"; } return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

ltla-sanisizer — pip install ltla-sanisizer · libregistry