Closed Bug 409386 Opened 14 years ago Closed 14 years ago

mozStorageArgvValueArray::GetString returns wrong length

Categories

(Toolkit :: Storage, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla1.9beta3

People

(Reporter: ondrej, Assigned: ondrej)

References

Details

Attachments

(1 file)

Function mozStorageArgvValueArray::GetString in storage/mozStorageValueArray.cpp assigns a value to nsAString & retval and sets the length to the number of bytes read from database. However, the length in bytes should be divided by 2 as can be seen in mozStorageStatementRowValueArray::GetString.

This function will probably be used in bug #385245, so I'm adding a dependency.
Attachment #294206 - Flags: review?(comrade693+bmo)
Comment on attachment 294206 [details] [diff] [review]
Fix the returned length

r=sdwilsh
Attachment #294206 - Flags: review?(comrade693+bmo)
Attachment #294206 - Flags: review+
Attachment #294206 - Flags: approval1.9?
Attachment #294206 - Flags: approval1.9? → approval1.9+
Keywords: checkin-needed
Thanks for the patch!

Checking in storage/src/mozStorageValueArray.cpp;
/cvsroot/mozilla/storage/src/mozStorageValueArray.cpp,v  <--  mozStorageValueArray.cpp
new revision: 1.5; previous revision: 1.4
done
Status: NEW → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
OS: Windows XP → All
Hardware: PC → All
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9 M11
You need to log in before you can comment on or make changes to this bug.