| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent fc8d6f4 commit c4f1868
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -33,8 +33,9 @@ Core and Builtins | |||
| 33 | 33 | alpha 2, including: (1) a serious 'wrong output' bug that could | |
| 34 | 34 | occur for long (> 40 digit) input strings, (2) a crash in dtoa.c | |
| 35 | 35 | that occurred in debug builds when parsing certain long numeric | |
| 36 | - strings corresponding to subnormal values, and (3) a number of flaws | ||
| 37 | - that could lead to incorrectly rounded results. | ||
| 36 | + strings corresponding to subnormal values, (3) a memory leak for | ||
| 37 | + some values large enough to cause overflow, and (4) a number of | ||
| 38 | + flaws that could lead to incorrectly rounded results. | ||
| 38 | 39 | ||
| 39 | 40 | - The __complex__ method is now looked up on the class of instances to make it | |
| 40 | 41 | consistent with other special methods. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1939,8 +1939,14 @@ _Py_dg_strtod(const char *s00, char **se) | |||
| 1939 | 1939 | dval(&rv) += adj.d; | |
| 1940 | 1940 | if ((word0(&rv) & Exp_mask) >= | |
| 1941 | 1941 | Exp_msk1*(DBL_MAX_EXP+Bias-P)) { | |
| 1942 | - if (word0(&rv0) == Big0 && word1(&rv0) == Big1) | ||
| 1942 | + if (word0(&rv0) == Big0 && word1(&rv0) == Big1) { | ||
| 1943 | + Bfree(bb); | ||
| 1944 | + Bfree(bd); | ||
| 1945 | + Bfree(bs); | ||
| 1946 | + Bfree(bd0); | ||
| 1947 | + Bfree(delta); | ||
| 1943 | 1948 | goto ovfl; | |
| 1949 | + } | ||
| 1944 | 1950 | word0(&rv) = Big0; | |
| 1945 | 1951 | word1(&rv) = Big1; | |
| 1946 | 1952 | goto cont; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments