Some c0 characters cause a crash #1
Labels
🗄 area/interface
This affects the public interface
💪 phase/solved
Post is done
👶 semver/patch
This is a backwards-compatible fix
🐛 type/bug
This is a problem
Subject of the issue
Some short inputs produce
RangeError: Maximum call stack size exceeded
errorsYour environment
Steps to reproduce
discovered using micromark/micromark#18
Run any of the attached files through to reproduce the issue
crash-5ea430ec94fc2ad0111b7a93902717954c33aee70c4580157e2e33f1233b771f.txt
crash-8d29501e5df33f9267a4c3e5756c3f064b02ac17b1a94dd9fed3864065cac8f7.txt
crash-18fa9164e99eede7aef9a4b132dfd102c63af51f5281a5e65f62d7f8a05da2c2.txt
crash-44ddd3dab072ad531b8d1d8bf1de45d1434239863e92eb11e24376a2250833bd.txt
crash-61c581437cca1b8a729dbc7785c87c990a15e64246bc38177a47299817f410d6.txt
crash-199c3bd460de84b1e70363da216e177a93d918f6e4ba3abb485f961ca8f5d20d.txt
crash-0986c194573a3b25288270e3238197192b2c5e16780905f85e6b5d307de17030.txt
crash-3647cb12a83367983354b6aa65573a230990070507444681e6d3c4c19c3d1f8d.txt
crash-a00f61d5c6ccbd0fa0f439bd59fe31ebdaa62dd5fa18bc7a40b6a78df0362220.txt
crash-c89af552ec529a6276432019ad8f404aa630dc590de696c1c164aa1baec4b3a0.txt
crash-d5f7abcafb561be96fb5af1839cd54a47303216105afa9477d072d7fcdc5d6fd.txt
Expected behavior
micromark should not crash
Actual behavior
The text was updated successfully, but these errors were encountered: