Custome patterns cause memory overflow
See original GitHub issueI have a custome .log file for which I wanna create highlight patterns. I played around and experience a memory overflow and extension manager crash, every time I use quantifiers in the regex pattern.
"logFileHighlighter.customPatterns": [
{
"pattern": "test",
"foreground": "#f0ff00",
"background": "#000000"
},
{
"pattern": "A*",
"foreground": "#f0ff00",
"background": "#000000"
}
],
I use a small logfile with 50 lines for debug.
The extension manager gives me that:
I can see in the ressource manager that my RAM is growing until the extension manager crashes.
Am I using wrong Regex syntax or do I have too little RAM?
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
[FNV] Possible Cause for Memory Leak? : r/FalloutMods - Reddit
"0020","+","Female Drifter Armor for New Vegas Bounties III and other Tweaks and ... "0038","+","On the Saddle Already - No Sunny Tutorial".
Read more >c# - Deleting project/pages/usercontrols from memory
When the migration is complete, you will access your Teams at stackoverflowteams.com, and they will no longer appear in the left sidebar on...
Read more >Flipping Bits in Memory Without Accessing Them
First, the two mov instructions read from. DRAM at address X and Y and install the data into a register and also the...
Read more >How to fix: Svchost.exe (netsvcs) memory leak or high CPU ...
This guide contains detailed instructions on how to fix svchost.exe memory leak or high CPU usage problems.
Read more >Compile-Time Defenses: Language Extension, Safe Libraries
must identify a buffer overflow vulnerability in some program ... understand how buffer is stored in memory and determine potential for corruption.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks, I upgraded to 2.13.0 and can confirm it works as expected.
Btw, thanks for the extension, it makes reading my app’s log files so much easier with all my custom patterns.
@winfij, I decided to temporarily revert the package updates and republish the extension. Upgrading to 2.13.0 should make it work again. I don’t understand this problem so I’ll be careful when upgrading again and will test your pattern. It doesn’t seem to be a problem purely related to quantifiers either, some regex expressions work perfectly and others don’t. Very strange.