bson_ascii_strtoll() does not detect ERANGE errors

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 1.5.0
    • Affects Version/s: 1.3.5
    • Component/s: libbson
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In _bson_json_read_string(), bson_ascii_strtoll() is called and errno is later compared with ERANGE to check for an out-of-range value. Internally, bson_ascii_strtoll() never actually sets ERANGE and appears to have no logic for detecting range errors.

            Assignee:
            A. Jesse Jiryu Davis
            Reporter:
            Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: