dlang-community / libdparse

Library for lexing and parsing D source code
https://libdparse.dlang.io
Boost Software License 1.0
114 stars 56 forks source link

fix out of bounds error & add some precautions #456

Closed WebFreak001 closed 2 years ago

WebFreak001 commented 2 years ago

Seems like with attaching comments to function bodies an error pretty quickly got introduced that happens while coding. If DCD updates libdparse before this is merged, server crashes are sure to arise.

Recovery to that and adds some bounds checks in general.