User Tools

Site Tools


zxt:extension:00000001:0002

00000001:0002 - FIX: #bind double freeing

Information

  • ID: 00000001:0002

Flags

Flag Set? (MUST/MAY/…) Description
parsing_must MUST NOT
reading_must MUST NOT
writing_must MUST NOT
playing_should MAY
playing_must MAY
editing_should MUST NOT

Field data

None.

Description

This extension fixes double frees in the #BIND command. Its presence guarantees that #BINDing on an object which is already bound will not cause invalid memory freeing.

In ZZT 3.2's codebase, this involves two specific additional checks:

  • If the stat which is changing bindings's data pointer is used by another stat, it should not free that data pointer,
  • If the stat is binding to itself, it should not free that data pointer.

Implementations

zxt/extension/00000001/0002.txt · Last modified: 2021/07/03 00:16 by asie