Closed
Bug 662851
Opened 13 years ago
Closed 13 years ago
EnsureWritableCapacity should take a uint32_t
Categories
(Tamarin Graveyard :: Virtual Machine, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
Q4 11 - Anza
People
(Reporter: treilly, Assigned: brbaker)
Details
Attachments
(3 files)
1.11 KB,
patch
|
stejohns
:
review+
edwsmith
:
superreview+
|
Details | Diff | Splinter Review |
3.35 KB,
patch
|
treilly
:
review+
|
Details | Diff | Splinter Review |
4.77 KB,
patch
|
jsudduth
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Reporter | ||
Updated•13 years ago
|
Attachment #538056 -
Attachment is patch: true
Attachment #538056 -
Flags: review?(stejohns)
Comment 1•13 years ago
|
||
Comment on attachment 538056 [details] [diff] [review] use a uint32_t instead all callers pass a uint32_t, so this looks sound. (No callers in Flash-land I presume?)
Attachment #538056 -
Flags: review?(stejohns) → review+
Reporter | ||
Comment 2•13 years ago
|
||
Grower is private inner class of ByteArray and there's no friending so I think its a contained issue
Reporter | ||
Updated•13 years ago
|
Attachment #538056 -
Flags: superreview?(edwsmith)
Comment 3•13 years ago
|
||
changeset: 6382:3b80251e8145 user: Tommy Reilly <treilly@adobe.com> summary: Bug 662851 - Make EnsureWritableCapacity take uint32_t instead of uint64_t since all callers pass uint32_t (r=stejohns,sr-pending=ed) http://hg.mozilla.org/tamarin-redux/rev/3b80251e8145
Reporter | ||
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 4•13 years ago
|
||
Comment on attachment 538056 [details] [diff] [review] use a uint32_t instead The first comparison in the function looks pretty sketchy either way -- it involves a size_t constant (GCHeap::kMaxObjectSize) and a uint32_t multiply). Please add a comment explaining why its absolutely right. > if (newCapacity < minimumCapacity) > newCapacity = uint32_t(minimumCapacity); The explicit uint32_t() cast here is now redundant, please fix. are there any test cases that probe the boundary conditions at the biggest allowable byte array? if not, please add, or create a bug to make sure someone is on the hook to add them.
Attachment #538056 -
Flags: superreview?(edwsmith) → superreview+
Updated•13 years ago
|
Assignee: nobody → treilly
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Flags: flashplayer-qrb+
Flags: flashplayer-injection-
Priority: -- → P3
Target Milestone: --- → Q4 11 - Anza
Comment 5•13 years ago
|
||
changeset: 6437:4d448a44169a user: Tommy Reilly <treilly@adobe.com> summary: Bug 662851 - Remove redundant cast found during post push review (r=edwsmith) http://hg.mozilla.org/tamarin-redux/rev/4d448a44169a
Comment 6•13 years ago
|
||
changeset: 6438:42bc8f8b25bc user: Tommy Reilly <treilly@adobe.com> summary: Bug 662851 - Add some comments as requested in review http://hg.mozilla.org/tamarin-redux/rev/42bc8f8b25bc
Reporter | ||
Comment 7•13 years ago
|
||
We need a test like this: for(var i:uint32=0xffffc000;i<0x100000000;i+=4096) { try { new ByteArray().length = i; } catch(e) { assert(e is MemoryErrorF); } }
Reporter | ||
Updated•13 years ago
|
Assignee: treilly → nobody
Reporter | ||
Updated•13 years ago
|
Flags: in-testsuite-
Reporter | ||
Comment 8•13 years ago
|
||
Taking myself off this bug, hoping QE will come along and add an acceptance test for the ByteArray class length boundary conditions.
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → brbaker
Flags: in-testsuite- → in-testsuite?
Assignee | ||
Comment 9•13 years ago
|
||
Attachment #547423 -
Flags: review?
Assignee | ||
Updated•13 years ago
|
Attachment #547423 -
Flags: review? → review?(treilly)
Reporter | ||
Updated•13 years ago
|
Attachment #547423 -
Flags: review?(treilly) → review+
Comment 10•13 years ago
|
||
changeset: 6483:139ee1943775 user: Brent Baker <brbaker@adobe.com> summary: Bug 662851: test boundary conditions at the biggest allowable byte array (r=treilly) http://hg.mozilla.org/tamarin-redux/rev/139ee1943775
Assignee | ||
Comment 11•13 years ago
|
||
There are 2 things in this patch: 1) This testcase has internal logic to run specific tests based on if AVMFEATURE_64BIT vs AVMFEATURE_32BIT is defined, so this testcase needs to be skipped when doing 32vs64 differential testing. 2) Testcase will also cause the system malloc on mac32 to produce stderr (but not fail) so we need to skip it during an "AIR" configuration run, which is compiled with --enable-use-system-malloc.
Attachment #548181 -
Flags: review?(jsudduth)
Updated•13 years ago
|
Attachment #548181 -
Flags: review?(jsudduth) → review+
Comment 12•13 years ago
|
||
changeset: 6485:67830de8ef24 user: Brent Baker <brbaker@adobe.com> summary: bug 662851: need to skip the testcase on a compile of test configurations, 32bit vs 64bit and mac32 when using system malloc (r=jsudduth) http://hg.mozilla.org/tamarin-redux/rev/67830de8ef24
Assignee | ||
Updated•13 years ago
|
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Flags: in-testsuite? → in-testsuite+
Resolution: --- → FIXED
Assignee | ||
Updated•13 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•