[Webkit-unassigned] [Bug 148620] New: Undefined behavior in SQLiteStatement::getColumnText

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Aug 30 14:40:28 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=148620

            Bug ID: 148620
           Summary: Undefined behavior in SQLiteStatement::getColumnText
    Classification: Unclassified
           Product: WebKit
           Version: Other
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mcatanzaro at igalia.com

There is undefined behavior in SQLiteStatement::getColumnText. sqlite3_column_text16 can trigger an internal type conversion, which would invalidate the result of sqlite3_column_bytes16. Here they are called as two different parameters to the same function, so the order is undefined. But the correctness of this function relies on sqlite3_column_text16 being called before sqlite3_column_bytes16.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150830/d95a1e2b/attachment-0001.html>


More information about the webkit-unassigned mailing list