lcn2 / calc

C-style arbitrary precision calculator
http://www.isthe.com/chongo/tech/comp/calc/index.html
Other
358 stars 51 forks source link

Segfault if getpwuid() returns NULL #5

Closed baratharon closed 5 years ago

baratharon commented 5 years ago

https://github.com/lcn2/calc/blob/37ad43c7fd2df394754a5d08c5d861e74f88672f/lib_calc.c#L518

An "else" is probably missing.

lcn2 commented 5 years ago

Thank you for reporting this problem! We will fix this in calc version 2.12.7.2.

lcn2 commented 5 years ago

Fixed in calc version 2.12.7.2:

https://github.com/lcn2/calc/releases/tag/2.12.7.2