gtkd-developers / gir-to-d

Create D bindings from GObject introspection files
GNU Lesser General Public License v3.0
23 stars 13 forks source link

Library regex not flexible enough, results in crashes #3

Closed ximion closed 7 years ago

ximion commented 7 years ago

Hi! The regexes introduced in commit https://github.com/gtkd-developers/gir-to-d/commit/88dc63ad132ac71cd2cdbacca85e12184673ca9f are not flexible enough. For example, a GIR file may contain library names like libappstream.so.4 which makes girtod crash instantly with an error like

core.exception.AssertError@/usr/lib/ldc/x86_64-linux-gnu/include/d/std/regex/package.d(473): wrong match: 17..0