sphincsplus icon indicating copy to clipboard operation
sphincsplus copied to clipboard

missing fclose

Open maddin200 opened this issue 1 year ago • 0 comments

File: sphincsplus-master\ref\PQCgenKAT_sign.c line 51

Code: // Create the REQUEST file sprintf(fn_req, "PQCsignKAT_%d.req", CRYPTO_SECRETKEYBYTES); if ( (fp_req = fopen(fn_req, "w")) == NULL ) { printf("Couldn't open <%s> for write\n", fn_req); return KAT_FILE_OPEN_ERROR; } sprintf(fn_rsp, "PQCsignKAT_%d.rsp", CRYPTO_SECRETKEYBYTES); if ( (fp_rsp = fopen(fn_rsp, "w")) == NULL ) { printf("Couldn't open <%s> for write\n", fn_rsp); // <-- missing fclose(fp_req) return KAT_FILE_OPEN_ERROR; }

maddin200 avatar Aug 19 '24 09:08 maddin200