Skip to content

Conversation

BdR76
Copy link
Owner

@BdR76 BdR76 commented Aug 2, 2025

Merged molsonkiko fix for big files

molsonkiko and others added 6 commits September 26, 2024 21:21
Previously CSVLint assumed that all files had length less than
    int.MaxValue (2147483647), and any files longer than that would simply cause the plugin to crash.
    This is OK if Notepad++ catches the crash, but if not, such a crash could cause Notepad++ to fail unexpectedly.
This commit implements a more graceful handling of too-large files, where the user is initially
    notified if they try to run a plugin command on a too-large file, and they can opt out of such notifications.
    Whether or not the user is notified, all plugin commands will do nothing after they detect that the file is too large.
Also reduce risk of null dereference on return value from Main.GetCurrentCsvDef,
rename that function to Main.TryGetCurrentCsvDef
it was auto-inserted by Visual Studio in an earlier commit
@BdR76 BdR76 merged commit 8dab745 into master Aug 2, 2025
8 checks passed
@BdR76 BdR76 deleted the molsonkiko-fix_crash_on_too_big_files branch August 2, 2025 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants