Browse source

Changelog

Query
From:
To:
Branch:
Path:
Message:
BugID:
User: +
Format:
: 1 checkin (+17/-2) by Henrik Grubbström (Grubba) <grubba@grubba.org> Lines added/removed recently

Monday 18 October 2021

2021-10-18 11:09:25 (1 year ago) by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler [docode]: Fix indexing out of bounds.

The code

struct reference *ref = PTR_FROM_INT(p, IDREF_MAGIC_THIS);
struct identifier *id = ID_FROM_PTR(p, ref);

is NOT safe, so break out the IDREF_MAGIC_THIS special case.

[permalink]

Bugs? Suggestions?