Commit ca3d59a
Release Manager
gh-37792: remove a stray leftover in in sa2si_ZZmod()
As reported on [sage-devel](https://groups.google.com/g/sage-
devel/c/r7IpxjZTz5Y/m/d0I95VSnAAAJ) and reproduced, the following
crashes Sage with probability about 1/3.
```python
x,y=var('x,y');n=10**6
while True: so=solve_mod(x*y-1,n)
#press CTL-C, crashes with probability about 1/3
```
The backtrace points to is a meaningless assignment in `sa2si_ZZmod()`
```python
nr2mModul = d.parent().characteristic()
```
where this happens. `nr2mModul` is not used anywhere in the code.
Removing it appears to make the crash to go away.
### 📝 Checklist
<!-- Put an `x` in all the boxes that apply. -->
- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation accordingly.
URL: #37792
Reported by: Dima Pasechnik
Reviewer(s):
1 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1544 | 1544 | | |
1545 | 1545 | | |
1546 | 1546 | | |
1547 | | - | |
1548 | 1547 | | |
1549 | 1548 | | |
1550 | 1549 | | |
| |||
0 commit comments