Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
events: do not read garbage memory on empty control files (#724)
This is another one of the address sanitizer catches. For whatever reason my directed messaging fakeship ended up in a situation with empty `control.bin` and `memory.bin`. When starting up this fakeship the address sanitizer blows up here: https://github.com/urbit/vere/blob/f5799a9e778d3e479f1e81ab0b33a4da2807218b/pkg/noun/events.c#L459-L467 `len_w` is 0, `malloc(0)` is implementation defined but does give a non-null pointer on macos, which means that on line 462 we are reading random garbage.
- Loading branch information