Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
when iterating backwards or when nr_snips is 0, the pointer will be decremented outside of the `cs_snip` array object and into the header, which is technically UB [0]. avoid it by returning early on nr_snips == 0 case and by checking against the "stop" pointer before doing the decrement. 0: https://port70.net/~nsz/c/c11/n1570.html#6.5.6p8
- Loading branch information