MathWebSearch / mws

MathWebSearch Implementation
https://search.mathweb.org/
GNU General Public License v3.0
47 stars 12 forks source link

MwsDbc open() and create_new() need to handle errors #1

Closed cprodescu closed 10 years ago

cprodescu commented 10 years ago

fmdb->open() and crdb->open() return values are not checked. If we use

mwsd -I /harvest/ -D /path/with/no/write/access

the process will end with a segfault instead of printing the errno error and bailing out gracefully.