add MOZ_LIST_FIND to IPC Tainting macros
Categories
(Core :: IPC, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox85 | --- | fixed |
People
(Reporter: jewilde, Assigned: jewilde)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
MOZ_LIST_FIND or maybe MOZ_FIND_AND_VALIDATE would be useful for cases where we need to validate something by checking it against a list. (i.e. aControllerIdx in WindowsGamepad.cpp)
tjr recommended to me something like const Gamepad* gamepad = MOZ_LIST_FIND(pad, mGamepads, pad.mSuperIndex == aControlIdx);
We should workshop on the best way to implement this.
| Assignee | ||
Comment 1•5 years ago
|
||
Comment 3•4 years ago
|
||
Backed out changeset 49e43292c047 (bug 1658755) for HashFunctions.h failures.
Backout link: https://hg.mozilla.org/integration/autoland/rev/e64f0b3c81943c0415c91f022102620714773ba7
Failure log: https://treeherder.mozilla.org/logviewer?job_id=322084382&repo=autoland&lineNumber=2243
[task 2020-11-17T19:47:01.531Z] 19:47:01 INFO - TEST-START | Tainting.moz_find_and_validate
[task 2020-11-17T19:47:01.531Z] 19:47:01 INFO - =================================================================
[task 2020-11-17T19:47:01.531Z] 19:47:01 ERROR - ==1433==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffd19225481 at pc 0x7fbdc88b2c53 bp 0x7ffd19223fc0 sp 0x7ffd19223fb8
...
[task 2020-11-17T19:47:02.203Z] 19:47:02 INFO - SUMMARY: AddressSanitizer: stack-buffer-overflow /builds/worker/workspace/obj-build/dist/include/mozilla/HashFunctions.h:253:19 in HashStringUntilZero<const unsigned char *>
...
| Assignee | ||
Comment 5•4 years ago
|
||
https://treeherder.mozilla.org/jobs?repo=try&revision=87924807f7895c0959a34d7d512501e9a809005d I've got a green light from my latest try push, so I'm going to try to land this again with the fix.
Comment 7•4 years ago
|
||
| bugherder | ||
Description
•