datetime: validate unpacked data
Introduced few checks of validity of incoming data at the moment messagepack is converted to datetime. - we check that size is either big enough for single epoch or whole record; - and we check range of data in decoded fields. Fixes #6723 NO_DOC=bugfix NO_TEST=see the other commit for fuzzer
Showing
- changelogs/unreleased/gh-6723-validate-datetime-messagepack.md 4 additions, 0 deletions...elogs/unreleased/gh-6723-validate-datetime-messagepack.md
- src/lib/core/datetime.h 33 additions, 0 deletionssrc/lib/core/datetime.h
- src/lib/core/mp_datetime.c 8 additions, 2 deletionssrc/lib/core/mp_datetime.c
- src/lib/tzcode/timezone.c 2 additions, 3 deletionssrc/lib/tzcode/timezone.c
Loading
Please register or sign in to comment