Toggle navigation
Tom's Link Heap
Home
Popular Tags
About
Log In
Tags: assert
*
1 bookmark(s) - Sort by:
Date
/
Title
/
Why it is bad idea to check result of malloc call with assert
The assert macro doesn't do anything in release builds, so when a memory allocation fails in a release build, you don't do the check at all.
https://pvs-studio.com/en/blog/posts/cpp/1104
Tags:
c++
,
memory-management
,
assert
,
memory-safety
by
Tom Willemse
(2024-03-30)
Website
Code
Builds
Blog
Linked Tags
Related Tags
c++
+
memory-management
+
memory-safety
+
Top of the page
First
Previous
Next
Last
Page 1 of 1
About
- Propulsed by
SemanticScuttle