apiaryio / drafter

API Blueprint Parser (C++)
https://apiblueprint.org/
MIT License
301 stars 54 forks source link

sigsegv #755

Closed klokane closed 4 years ago

klokane commented 4 years ago

following ADD leads to seg fault

# GET /

+ Response 200 (application/json)

        [
info:
  description: |
    ---
    # Description

Fix: add check of BytesRanges

https://github.com/apiaryio/drafter/blob/master/ext/snowcrash/ext/markdown-parser/src/ByteBuffer.cc#L140

    if (rangeSet.empty()) {
        return characterMap;
    }