Closed
Bug 1793734
Opened 2 years ago
Closed 1 year ago
Some stub definitions in wasm-rt-wasi.c don't match the real functions
Categories
(Core :: Security: RLBox, defect)
Core
Security: RLBox
Tracking
()
RESOLVED
FIXED
109 Branch
Tracking | Status | |
---|---|---|
firefox109 | --- | fixed |
People
(Reporter: glandium, Assigned: shravanrn)
Details
Attachments
(1 file)
For $reasons, I'm going through function declarations and definitions in LLVM-IR and found these discrepancies:
Z_wasi_snapshot_preview1Z_fd_fdstat_getZ_iii does not match (2 variants):
i32 (i32, i32) (defined in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/wasm-rt-wasi.o)
i32 (ptr, i32, i32) (declared in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/rlbox.wasm.o)
Z_wasi_snapshot_preview1Z_fd_fdstat_set_flagsZ_iii does not match (2 variants):
i32 (i32, i32) (defined in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/wasm-rt-wasi.o)
i32 (ptr, i32, i32) (declared in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/rlbox.wasm.o)
Z_wasi_snapshot_preview1Z_fd_readdirZ_iiiiji does not match (2 variants):
i32 (i32, i32, i32, i64, i32) (defined in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/wasm-rt-wasi.o)
i32 (ptr, i32, i32, i32, i64, i32) (declared in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/rlbox.wasm.o)
Z_wasi_snapshot_preview1Z_path_create_directoryZ_iiii does not match (2 variants):
i32 (i32, i32, i32) (defined in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/wasm-rt-wasi.o)
i32 (ptr, i32, i32, i32) (declared in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/rlbox.wasm.o)
Z_wasi_snapshot_preview1Z_path_filestat_getZ_iiiiii does not match (2 variants):
i32 (i32, i32, i32, i32, i32) (defined in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/wasm-rt-wasi.o)
i32 (ptr, i32, i32, i32, i32, i32) (declared in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/rlbox.wasm.o)
Z_wasi_snapshot_preview1Z_path_filestat_set_timesZ_iiiiijji does not match (2 variants):
i32 (i32, i32, i32, i32, i64, i64, i32) (defined in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/wasm-rt-wasi.o)
i32 (ptr, i32, i32, i32, i32, i64, i64, i32) (declared in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/rlbox.wasm.o)
Z_wasi_snapshot_preview1Z_path_linkZ_iiiiiiii does not match (2 variants):
i32 (i32, i32, i32, i32, i32, i32, i32) (defined in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/wasm-rt-wasi.o)
i32 (ptr, i32, i32, i32, i32, i32, i32, i32) (declared in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/rlbox.wasm.o)
Z_wasi_snapshot_preview1Z_path_openZ_iiiiiijjii does not match (2 variants):
i32 (i32, i32, i32, i32, i32, i64, i64, i32, i32) (defined in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/wasm-rt-wasi.o)
i32 (ptr, i32, i32, i32, i32, i32, i64, i64, i32, i32) (declared in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/rlbox.wasm.o)
Z_wasi_snapshot_preview1Z_path_readlinkZ_iiiiiii does not match (2 variants):
i32 (i32, i32, i32, i32, i32, i32) (defined in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/wasm-rt-wasi.o)
i32 (ptr, i32, i32, i32, i32, i32, i32) (declared in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/rlbox.wasm.o)
Z_wasi_snapshot_preview1Z_path_remove_directoryZ_iiii does not match (2 variants):
i32 (i32, i32, i32) (defined in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/wasm-rt-wasi.o)
i32 (ptr, i32, i32, i32) (declared in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/rlbox.wasm.o)
Z_wasi_snapshot_preview1Z_path_renameZ_iiiiiii does not match (2 variants):
i32 (i32, i32, i32, i32, i32, i32) (defined in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/wasm-rt-wasi.o)
i32 (ptr, i32, i32, i32, i32, i32, i32) (declared in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/rlbox.wasm.o)
Z_wasi_snapshot_preview1Z_path_symlinkZ_iiiiii does not match (2 variants):
i32 (i32, i32, i32, i32, i32) (defined in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/wasm-rt-wasi.o)
i32 (ptr, i32, i32, i32, i32, i32) (declared in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/rlbox.wasm.o)
Z_wasi_snapshot_preview1Z_path_unlink_fileZ_iiii does not match (2 variants):
i32 (i32, i32, i32) (defined in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/wasm-rt-wasi.o)
i32 (ptr, i32, i32, i32) (declared in /tmp/gecko/obj-x86_64-pc-linux-gnu/toolkit/library/build/../../../security/rlbox/rlbox.wasm.o)
(the first type is the return type, the ones in parentheses are the params)
This is not an exhaustive list, though. It ignores the functions declarations that are dropped because they aren't used.
That doesn't cause actual problems because the functions are stubs and don't use the params, but it's noise for my investigations.
Reporter | ||
Updated•2 years ago
|
Summary: Some stubdefinitions in wasm-rt-wasi.c don't match the real functions → Some stub definitions in wasm-rt-wasi.c don't match the real functions
Comment 1•2 years ago
|
||
The severity field is not set for this bug.
:shravanrn, could you have a look please?
For more information, please visit auto_nag documentation.
Flags: needinfo?(shravanrn)
Assignee | ||
Comment 2•1 year ago
|
||
Sorry for the delay. I will look into fixing this.
Assignee | ||
Updated•1 year ago
|
Flags: needinfo?(shravanrn)
Assignee | ||
Updated•1 year ago
|
Assignee: nobody → shravanrn
Assignee | ||
Comment 3•1 year ago
|
||
Comment 4•1 year ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 1 year ago
status-firefox109:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•