Contenu principal

Défauts de mémoire dynamique

Défauts concernant les erreurs de codage de la mémoire dynamique, les pointeurs libérés, les fuites de mémoire, la mémoire non protégée

Ces défauts sont des erreurs liées à l'utilisation de la mémoire lorsque celle-ci est allouée de manière dynamique. Ces défauts incluent :

  • Libération de la mémoire allouée de manière dynamique

  • Allocations de mémoire non protégée

Résultats Polyspace

Alignment changed after memory reallocationMemory reallocation changes the originally stricter alignment of an object
Deallocation of previously deallocated pointerMemory freed more than once without allocation
Invalid free of pointerPointer deallocation without a corresponding dynamic allocation
Invalid deletion of pointerPointer deallocation using delete without corresponding allocation using new
Memory leakMemory allocated dynamically not freed
Mismatched alloc/dealloc functions on WindowsImproper deallocation function causes memory corruption issues
Unprotected dynamic memory allocationPointer returned from dynamic allocation not checked for NULL or nullptr value
Use of previously freed pointerMemory accessed after deallocation

Rubriques

  • Bug Finder Defect Groups

    The Bug Finder defect checkers are classified into groups such as data flow, concurrency, numerical, and so on.