Closed Bug 1898572 Opened 1 year ago Closed 1 year ago

`if (byteLength > LZ4MaxSize)` warning

Categories

(Core :: JavaScript: WebAssembly, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: yury, Assigned: rhunt)

References

Details

(Keywords: good-first-bug)

Attachments

(1 file)

On 32-bit systems, build complaints:

 3:41.51 /home/yury/Work/mozilla-unified/js/src/shell/js.cpp:9049:18: warning: result of comparison 'size_t' (aka 'unsigned int') > 4294967295 is always false [-Wtautological-type-limit-compare]
 3:41.51  9049 |   if (byteLength > LZ4MaxSize) {
 3:41.51       |       ~~~~~~~~~~ ^ ~~~~~~~~~~
 3:47.44 memory/build/test

which makes sense that on 32-bit ArrayBufferObject will never allocate array buffer more than LZ4MaxSize = UINT32_MAX.

It nice to hide this warning during the build.

Keywords: good-first-bug
See Also: → 1900525
Severity: -- → N/A
Priority: -- → P3
Assignee: nobody → rhunt
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: