Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1377

bson_ascii_strtoll() does not detect ERANGE errors

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.5.0
    • 1.3.5
    • libbson
    • None

    Description

      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.

      Attachments

        Activity

          People

            jesse@mongodb.com A. Jesse Jiryu Davis
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: