ERROR_STACK_BUFFER_OVERRUN 0x80070502

Error code 1282 · HRESULT 0x80070502

WINDOWS

The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application.

Windows troubleshooting diagram: Device Manager warning and a system file scan
Windows errors: check drivers, system files and Event Viewer, in that order.

What it means

ERROR_STACK_BUFFER_OVERRUN is a Windows error code (system error 1282, returned as HRESULT 0x80070502) reported by Windows. Its official message is: “The system detected an overrun of a stack-based buffer in this application. This overrun could potentially allow a malicious user to gain control of this application.”

How to fix ERROR_STACK_BUFFER_OVERRUN

  1. Run Windows Memory Diagnostic (mdsched.exe) to exclude failing RAM
  2. Recent kernel memory faults usually trace to drivers — update graphics and chipset first
  3. Check the crash dump in C:\Windows\Minidump with WinDbg to identify the module

Related errors

Source: Microsoft WinError.h

Last updated: