Closed Bug 341008 Opened 19 years ago Closed 19 years ago

incorrect PR_sscanf error checking in nsPermissionManager.cpp

Categories

(Core :: Networking: Cookies, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.8.1

People

(Reporter: Biesinger, Assigned: Biesinger)

References

()

Details

(Keywords: fixed1.8.1)

Attachments

(1 file)

Per the documentation: | Returns | The number of items scanned and stored, or -1 if the conversion failed. But the code checks for != 0.
Attached patch patchSplinter Review
Attachment #225061 - Flags: superreview?(darin)
Attachment #225061 - Flags: review?(mvl)
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.9alpha
Attachment #225061 - Flags: approval-branch-1.8.1?(darin)
Attachment #225061 - Flags: review?(mvl) → review+
Attachment #225061 - Flags: superreview?(darin)
Attachment #225061 - Flags: superreview+
Attachment #225061 - Flags: approval-branch-1.8.1?(darin)
Attachment #225061 - Flags: approval-branch-1.8.1+
*** Committing to HEAD... Checking in extensions/cookie/nsPermissionManager.cpp; /cvsroot/mozilla/extensions/cookie/nsPermissionManager.cpp,v <-- nsPermissionManager.cpp new revision: 1.59; previous revision: 1.58 done *** Committing to MOZILLA_1_8_BRANCH... Checking in extensions/cookie/nsPermissionManager.cpp; /cvsroot/mozilla/extensions/cookie/nsPermissionManager.cpp,v <-- nsPermissionManager.cpp new revision: 1.55.2.1; previous revision: 1.55 done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
OS: Linux → All
Hardware: PC → All
Resolution: --- → FIXED
Target Milestone: mozilla1.9alpha → mozilla1.8.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: