libknot: rework knot_map_errno and keep just one variant
The previous knot_map_errno was vulnerable to stack buffer undeflow if the input list was not terminated with a zero.
Showing
- src/libknot/errcode.c 0 additions, 15 deletionssrc/libknot/errcode.c
- src/libknot/errcode.h 0 additions, 8 deletionssrc/libknot/errcode.h
- src/libknot/internal/errcode.c 35 additions, 24 deletionssrc/libknot/internal/errcode.c
- src/libknot/internal/errcode.h 2 additions, 7 deletionssrc/libknot/internal/errcode.h
Please register or sign in to comment