to an unexpected value, and a NULL pointer dereference occurs in line 4.
As already mentioned, many weaknesses can occur during the usage stage as well. In
this case, there is a path traversal weakness (CWE-22) from lines 2, 4, and 6, in which a
".." sequence in ftype will cause the program to read a file that is not in the intended