Merge pull request #60 from leizleiz/leizleiz-crbug

Fix bugs found by Chromium's sfntly fuzzer and other bug reporters