Puzzle: Use temporary variables when dereferencing initial_board
-
Puzzle: Use temporary variables when dereferencing initial_board
If we directly use
(!) initial_board [x, y]
, the C code generated by valac 0.48.16 sets a temporary variable to a pointer intoinitial_board
, and then frees that pointer when it goes out of scope, leaving a dangling pointer ininitial_board
which causes a double-free and a crash.Resolves: #32
Bug-Debian: https://bugs.debian.org/986718 -
Puzzle: Clarify why we can assume that saved tile references are non-null
Edited by Simon McVittie