Skip to content

Add ASan in CI and fix some bugs - #23

Merged
savetheclocktower merged 3 commits into
masterfrom
asan-in-linux
Oct 16, 2026
Merged

savetheclocktower merged 3 commits into
masterfrom
asan-in-linux

Conversation

@savetheclocktower

Copy link
Copy Markdown

ASan in CI is a good idea; it's a cheap check in Linux to possibly catch memory issues. Indeed, running it revealed some bugs that are fixed in the first commit.

But this PR also holds some bugfixes that were discovered through non-ASan approaches:

  • There were bugs in deserializeChanges that could've resulted in corrupted undo history when restoring a buffer from a previous session.
  • There were bugs in baseTextMatchesFile that allowed for false positives if the two compared strings’ lengths differed.

The latter is important to fix as part of implementing TextBuffer::resurrect properly in @pulsar-edit/text-buffer.

@savetheclocktower
savetheclocktower merged commit 38a2a05 into master Oct 16, 2026
21 of 22 checks passed
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.

1 participant