3 Commits

Author SHA1 Message Date
axxel
ba102842ba ptp2: fix usability issue with array_push_back
Having an implicit "move" that zeros out the source led to a painful
debugging session. This hidden behavior was a bad idea.

Adding array_init() for future use and minor fix of for_each().
2024-10-22 14:35:14 +02:00
Marcus Meissner
6a1a3f9924 adjust boundary check in for_each for non-standard cases (found by afl) 2024-10-19 12:14:20 +02:00
axxel
2991ad4caa ptp2: move array abstraction macros to new array.h for potential 2024-10-14 14:54:15 +02:00