Closed Bug 491776 Opened 16 years ago Closed 15 years ago

Avoid conversion of size_t to int while calling ChangeSize() in memory profiler code

Categories

(Tamarin Graveyard :: Garbage Collection (mmGC), defect, P5)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Q3 11 - Serrano

People

(Reporter: rishah, Assigned: lhansen)

References

Details

(Whiteboard: Has patch)

Attachments

(1 file)

The conversion could result in truncation and wrapping of the real size. Simply passing an argument to indicate add/subtract should do.
Flags: flashplayer-qrb+
Priority: -- → P3
Target Milestone: --- → Future
Assignee: rishah → nobody
Priority: P3 → P5
Target Milestone: Future → flash10.1
Target Milestone: flash10.1 → flash10.2
Assignee: nobody → lhansen
Status: NEW → ASSIGNED
Attached patch Obvious patchSplinter Review
Attachment #437621 - Flags: review?(fklockii)
Whiteboard: Has patch
Comment on attachment 437621 [details] [diff] [review] Obvious patch Compiles, and looks solid. (But I have not actually tested; I do not know how to exercise the memory profiler yet.) It looks like the other participants implicitly agree that the payoff for trying to make a test here would not justify the effort of construction. One nitpick: you used spaces for indentation but the rest of this file uses tabs. I would favor consistency within the file over isolated introduction of space-based indentation.
Attachment #437621 - Flags: review?(fklockii) → review+
Thanks. Nit acknowledged, but as spaces vs tabs is a tool-wide setting in Xcode I'm pretty much screwed and spaces have been slowly creeping into files for the last several months from many of us for that reason.
You can tell Xcode to use emacs as your source code editor. :) (But I can understand the appeal of sticking with one tool, especially if you know how to use it well. I am continuing to put off learning Xcode... I do not think I've found anything as good as the Green Hills IDE.)
(In reply to comment #4) > You can tell Xcode to use emacs as your source code editor. :) I could also drive nails into my hand... :-)
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Flags: flashplayer-bug+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: