The list of issues which can emerge on Windows 10 is incredibly long. However, even though there’s a lot of them, the big majority is quite rare and chances are you’ll never see any of them.
One of these errors, the “System detected an overrun of a stack-based buffer in this application” is scarce but can go as far as preventing your PC to boot after a BSOD.
But, no worries, you can resolve it with some effort. The steps we provided below should be enough.
Fix ‘System detected an overrun of a stack-based buffer in this application’ error
- Scan for malware
- Run SFC/DISM
- Perform a clean boot sequence
- Repair with system resources
- Repair with a bootable drive
- Reinstall Windows 10
Solution 1 – Scan for malware
As you’re already aware, the full error prompt 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“.
As you can see, Windows is suggesting that a certain application allows meddling with code (stack smashing) which allows injecting malicious code into your application.
That’s why we suggest scanning for malware. Of course, if you’re unable to boot, you can try with the Safe mode and utilize Windows Defender Offline scan to remove all threats.
Here’s what you need to do:
- Reboot your PC forcibly 3 times to summon the Advanced recovery menu.
- Choose Troubleshoot.
- Select Advanced Options and then Startup settings.
- Click Restart.
- Choose Safe Mode (or Safe Mode with Networking).
- Once the PC boots, open Windows Defender from the taskbar’s notification area.
- Choose Virus & threat protection.
- Select Scan options.
- Toggle Windows Defender Offline scan and click Scan now.
Also, consider uninstalling all suspicious applications from Control Panel while in the Safe mode.
Solution 2 – Run SFC/DISM
For this step, you’ll need the Safe Mode with Networking as Deployment Image Servicing and Management utility requires the internet connection.
Even though System File Checker doesn’t, we’ll need to run both tools to fix possible system corruption. They work best when combined and that’s why we’ll run them successively.
Follow these steps to run SFC and DISM:
Solution 3 – Perform a clean boot sequence
Another viable step to resolve issues invoked by a rogue application is a clean boot. It’s quite obvious that one of the applications which start with the system is corrupted and thus causes the “System detected an overrun of a stack-based buffer…”.
So, what we’ll need to do is prevent all third-party applications from starting with the system. If you can boot into the system without issues, even better. But if you can’t, then Safe Mode it is.
Follow these instructions to disable all background applications and services from starting with the system:
- In the Windows Search bar, search for msconfig and open System Configuration.
- Under the Services tab, check the “Hide all Microsoft services” box.
- Click “Disable all”.
- Now, select the Startup tab and go to Task Manager.
- Prevent all programs from starting with the system and confirm changes.
- Restart your PC.
Solution 4 – Repair with system resources
On the other hand, if you’re even unable to get into the Safe Mode, you can try with the system recovery options. Of course, the best available solution is System Restore, but the question is have you set a restore point.
An alternative solution is to try and repair the startup. We can’t say with certainty whether these will help, but you can always give them a try.
Here’s what you need to do:
- Access the Advanced Recovery menu and choose Troubleshoot.
- Choose Advanced options.
- Here, you can select System Restore or Startup repair.
- Try one then the other and hopefully, you’ll be able to boot.
Solution 5 – Repair with a bootable drive
If you’re completely unable to boot, this and next step will require a bootable media drive. Obviously, you’ll need an alternative PC to download Media Creation Tool and create a bootable drive.
Once you’ve done that, there’s a way to repair the current system image by using the bootable drive.
Follow these steps to repair corrupt Windows 10 with bootable media drive:
- Unplug everything from your PC apart from the mouse and keyboard.
- Insert the bootable media drive (USB or DVD) and boot with it.
- Once the drive boots, choose “Repair your computer“.
- Choose Troubleshoot.
- Select Advanced options.
- Choose Startup repair.
Solution 6 -Reinstall Windows 10
Finally, if none of the previous steps helped you address the problem, we encourage you to back up your data and reinstall Windows 10.
We’re probably looking into a large-scale problem and, although reinstallation can be a drag, it’s a definitive solution.
It’s not as time-consuming as it was on some previous iterations, the majority of drivers is automatically installed, and all you need to do is reinstall applications.
You can find out more about Windows 10 reinstallation by following the steps we provided in this article.
Also, don’t forget to tell us whether you find these steps helpful or not. In addition, please share alternative solutions. The comments section is just below.
RELATED STORIES YOU SHOULD CHECK OUT: