Back to TILs

C++ buffer underflow

Date: 2023-02-16Last modified: 2024-11-02

Table of contents

  char *var = new char[4];
  var[-1]   = 'a';
  delete[] var;

Possible output


double free or corruption (out)
Makefile: Failure on bin/buffer_underflow execution

References