Skip to content

CID 1508970: Uninitialized scalar variable #10208

Description

@maskit
395  if (strlen(inline_script) == 0 && argc - optind < 1) {
396    strncpy(errbuf, "[TSRemapNewInstance] - lua script file or string is required !!", errbuf_size - 1);
397    errbuf[errbuf_size - 1] = '\0';
398    return TS_ERROR;
399  }
400
   	
CID 1508970 (#1 of 1): Uninitialized scalar variable (UNINIT)
30. uninit_use_in_call: Using uninitialized value *script when calling strlen.
401  if (strlen(script) >= TS_LUA_MAX_SCRIPT_FNAME_LENGTH - 16) {
402    strncpy(errbuf, "[TSRemapNewInstance] - lua script file name too long !!", errbuf_size - 1);
403    errbuf[errbuf_size - 1] = '\0';
404    return TS_ERROR;
405  }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions