Closed Bug 528076 Opened 16 years ago Closed 16 years ago

Unsafe LIKE warning wrongly references mozIStorageConnection::escapeStringForLIKE

Categories

(Core :: SQLite and Embedded Database Bindings, defect)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED
mozilla1.9.3a1

People

(Reporter: Unfocused, Assigned: Unfocused)

Details

Attachments

(1 file)

In debug builds, when unsafely using LIKE, the following warning is given: Unsafe use of LIKE detected! Please ensure that you are using mozIStorageConnection::escapeStringForLIKE and that you are binding that result to the statement to prevent SQL injection attacks. The reference to mozIStorageConnection::escapeStringForLIKE is incorrect - that function is instead part of the mozIStorageStatement interface.
Attached patch Patch v1Splinter Review
Assignee: nobody → bmcbride
Status: NEW → ASSIGNED
Attachment #411845 - Flags: review?(sdwilsh)
Comment on attachment 411845 [details] [diff] [review] Patch v1 r=sdwilsh
Attachment #411845 - Flags: review?(sdwilsh) → review+
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a1
Product: Toolkit → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: