Skip to content

vikiang31/cpp-memory-errors-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Small collection of minimal C++ programs that demonstrate common memory errors:

  • buffer_overflow.cpp – writing past the end of an array
  • null_pointer.cpp – dereferencing a null pointer
  • use_after_free.cpp – accessing memory after it has been freed
  • dangling_pointer.cpp – returning address of a local variable

These examples are intentionally unsafe.

About

A collection of small C++ programs demonstrating common memory errors (buffer overflow, null pointer dereference, use-after-free, dangling pointer).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages