Skip to content

Clear arguments of fallback memfile_open()

Sijmen J. Mulder requested to merge sjmulder/mustach:pr/clear-args into master

The memfile_open() fallback implementation (without open_memstream()) left *buffer and *size unset, leaving and uncareful caller open to working with bad data.

Since the buffer and size can't actually be provided as open_memstream() would, zero them instead.

Merge request reports