oneapi-src / unified-memory-framework

A library for constructing allocators and memory pools. It also contains broadly useful abstractions and utilities for memory management. UMF allows users to manage multiple memory pools characterized by different attributes, allowing certain allocation types to be isolated from others and allocated using different hardware resources as required.
https://oneapi-src.github.io/unified-memory-framework/
Other
36 stars 28 forks source link

Add tests for integer overflow #541

Open bratpiorka opened 4 months ago

bratpiorka commented 4 months ago

The application performs a calculation that can produce an integer overflow or underflow. This can happen when an application's logic assumes that a resulting value will always be larger or smaller than the original value. This can lead to other weaknesses because the size of the buffer is incorrectly calculated, such as a buffer overflow.

Use the following guidelines to test for integer overflow:

bratpiorka commented 4 months ago

note: use "unsigned" where this make sense

bratpiorka commented 4 months ago

PR: https://github.com/oneapi-src/unified-memory-framework/pull/587