In https://github.com/editorconfig/editorconfig-core-c/blob/master/src/lib/ec_glob.c#L294, when we find an unpaired {, we will move all chars after it 1 byte, and insert a \, however, it seems we did not check the buffer length, so if there is a 8194 length pattern string that contains unpaired {, we will get an overflow.
In https://github.com/editorconfig/editorconfig-core-c/blob/master/src/lib/ec_glob.c#L294, when we find an unpaired
{, we will move all chars after it 1 byte, and insert a\, however, it seems we did not check the buffer length, so if there is a 8194 length pattern string that contains unpaired{, we will get an overflow.