fdopen return value is not checked.
fp = fdopen(fd, "r"); cook_cat(fp);
fix: check fp == NULL and handle the error.
Differential D57741
NULL pointer dereference in cat Authored by thebugfixers_pm.me on Mon, Jun 22, 12:08 PM. Tags None Referenced Files
Details
fdopen return value is not checked. fp = fdopen(fd, "r"); cook_cat(fp); fix: check fp == NULL and handle the error.
Diff Detail
|