Skip to content

Commit

Permalink
Fix error found by fuzzifier
Browse files Browse the repository at this point in the history
  • Loading branch information
slobodan-ilic committed Jun 12, 2024
1 parent 0a83ade commit 26e96c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spss/readstat_sav_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,11 @@ static readstat_error_t sav_read_multiple_response_sets(size_t data_len, sav_ctx
readstat_error_t retval = READSTAT_OK;

char *mr_string = readstat_malloc(data_len + 1);
mr_string[data_len] = '\0';
if (mr_string == NULL) {
retval = READSTAT_ERROR_MALLOC;
goto cleanup;
}
mr_string[data_len] = '\0';

if (ctx->io->read(mr_string, data_len, ctx->io->io_ctx) < data_len) {
retval = READSTAT_ERROR_PARSE;
Expand Down

0 comments on commit 26e96c7

Please sign in to comment.