Blit JS_FREE_PATTERN over memory being freed in js_free, on platforms that support malloc_size

NEW
Unassigned

Status

()

Core
JavaScript Engine
7 years ago
4 years ago

People

(Reporter: jorendorff, Unassigned)

Tracking

Other Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

7 years ago
Created attachment 546646 [details] [diff] [review]
WIP 1

On Windows, debug builds fill freed memory with garbage. I like it. This recently caught a read-after-free bug for me. So here's a crude hack to do the same on Mac. I tried it, and it doesn't slow things down very much.

The configury may not be quite up to snuff.
(Assignee)

Updated

4 years ago
Assignee: general → nobody
You need to log in before you can comment on or make changes to this bug.