Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dateseq abnormal termination when it receives an invalid date format #113

Open
HyeonseopJeong opened this issue Sep 28, 2020 · 0 comments
Open

Comments

@HyeonseopJeong
Copy link

HyeonseopJeong commented Sep 28, 2020

Hi,
I found that dateseq (version 0.4.7.git10.3793f3b) abnormally terminates
when it receives "0B" for where "Month" is supposed to be.

Example :

$ dateseq 2020-0B-01 2020-09-28

Assertion failed: ((signed int)md - 28 >= 0), function __get_bdays, file ./bizda.c, line 279.
Aborted


$ dateseq 2020-09-01 2020-0B-28

Assertion failed: ((signed int)md - 28 >= 0), function __get_bdays, file ./bizda.c, line 279.
Aborted

I found this failure with AFL fuzzer.

Please let me know if you need more information for reproducing this.
Thanks.

hroptatyr added a commit that referenced this issue Sep 28, 2020
* bug/113:
  fix, disallow business-day-of-year calendars, fixes issue #113
hroptatyr added a commit that referenced this issue Feb 2, 2021
* master: (45 commits)
  major, make ymcw dates ending in -00 synonymous with n-th ISO week in that month, use -07 for Sunday
  minor, properly convert negative stamps to hms
  minor, read epochs with strtoi64()
  minor, handle coordinated zones internally
  hygiene, use 48 bits for STAMP_MIN/STAMP_MAX
  minor, disallow transitions to the same type
  hygiene, operate with STAMP_MIN and STAMP_MAX for stamp_t slots
  debug, output test suite log in case of error
  fix, work around gcc antics
  minor, redo tzif reader, support files zic'd with -b slim
  use coordinated zone without leap transitions by default, fixes issue #121
  turn tzraw into standalone program for inspection
  docs: requested change, incomparable -> non-comparable
  docs: fix simple typo, uncomparable -> incomparable
  chore, make distcheck target non-parallel
  fix, track negativity in precalc to allow -0, fixes issue #116
  test, provide regression test case
  fix, also keep sandwich state when adding nanoseconds to dates, fixes #114
  fix, disallow business-day-of-year calendars, fixes issue #113
  hygiene, convince coverity that a certain path in __close() is impossible to walk into
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant