mirror of https://github.com/MariaDB/server
Browse Source
calc_daynr() function returns negative result if malformed date with zero year and month is used. Attempt to calculate week day on negative value leads to crash. The fix is return NULL for 'W', 'a', 'w' specifiers if zero year and month is used. Additional fix for calc_daynr(): --added assertion that result can not be negative --return 0 if zero year and month is usedpull/47/merge
4 changed files with 25 additions and 4 deletions
Loading…
Reference in new issue