Malformed document terminator in BSON parser error message

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: BSON
    • None
    • Ruby Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      At ext/bson/read.c:73, the error message displays the last byte in the string, the one that it expected to be null, but isn't. However, instead of showing the byte at length-1, it displays the byte at length, which is off by one. This has the potential to print something beyond the allocated length of the buffer.

            Assignee:
            Unassigned
            Reporter:
            Jamis Buck
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: