Search code examples
gobuffer-overflow

Is Go vulnerable for buffer overflow


I know languages like c# aren't vulnerable to buffer overflows unless you marshal or use unsafe code. But is go vulnerable for buffer overflows?


Solution

  • Go checks for bounds in strings, arrays and slices so it is not vulnerable as long as you are not playing around with unsafe package.