-
Notifications
You must be signed in to change notification settings - Fork 844
Closed
Labels
Description
386 if (ts_lua_hex_to_bin(key_bin, key, klen) == NULL) {
387 TSfree(key_bin);
388 return luaL_error(L, "hex to binary conversion failed");
389 }
390 key_bin_len = klen / 2;
391
392 HMAC(EVP_sha1(), key_bin, key_bin_len, src, slen, sha_buf, &output_length);
393
CID 1508976 (#1 of 1): Uninitialized scalar variable (UNINIT)
9. uninit_use_in_call: Using uninitialized element of array sha_buf when calling ts_lua_hex_dump. [[show details](https://scan6.scan.coverity.com/eventId=34625621-13&modelId=34625621-0&fileInstanceId=162996654&filePath=%2Fplugins%2Flua%2Fts_lua_string.c&fileStart=23&fileEnd=33)]
394 ts_lua_hex_dump(hex_buf, sha_buf, sizeof(sha_buf));
395 lua_pushlstring(L, (char *)hex_buf, sizeof(hex_buf));
396
397 TSfree(key_bin);
398 return 1;
399}
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done