pycryptodome
pycryptodome copied to clipboard
Possible dereference of null pointer.
Good day! During static analysis, a possible null pointer dereference was found. Testing was carried out on Linux Debian 11. The static analyzer pointed to the file src/ec_ws.c on line 1043, because usually the result of the new_workplace() function is tested for equality to the NULL value. In theory, it can happen that in line src/ec_ws.c:76 the result of the work will be equal to NULL in the case on line 1043. Please clarify why there is no check in this case after line 1043? Are there any plans to make changes to the code?
Fixed with 824c7064971153f96a6c84560377b8ad30c94bef
Now in v3.21.0