Message100104
Given
assert(*m > 0);
assert(*d > 0);
at the end of normalize_y_m_d(), it looks like at lest 1 <=*month and 1 <=*day are redundant.
A closer look also reveals
assert(1 <= *m && *m <= 12);
in the middle of normalize_y_m_d(). This seems to leave only *day <=31 possibly relevant.
I suspect that out of bounds day surviving normalize_y_m_d() is a logical error in that function that needs to be fixed and an assert() added at the end. The proposed patch appears to cure the symptom rather than the actual flaw. |
|
Date |
User |
Action |
Args |
2010-02-25 21:20:38 | Alexander.Belopolsky | set | recipients:
+ Alexander.Belopolsky, amaury.forgeotdarc, pythonhacker, mark.leander |
2010-02-25 21:20:37 | Alexander.Belopolsky | set | messageid: <1267132837.89.0.656450070644.issue7150@psf.upfronthosting.co.za> |
2010-02-25 21:20:36 | Alexander.Belopolsky | link | issue7150 messages |
2010-02-25 21:20:35 | Alexander.Belopolsky | create | |
|