Skip to content

CID 1518569: String not null terminated #10363

@maskit

Description

@maskit

money_trace.cc

232        bwriter.write(uuidstr, strlen(uuidstr));
233        bwriter.write(sep);
234        bwriter.write(parentid);
235        bwriter.write(new_parent);
236        bwriter.write(sep);
237        bwriter.write(spanid);
238        bwriter.print("{}", TSHttpTxnIdGet(txnp));
239
   	
CID 1518569 (#1 of 1): String not null terminated (STRING_NULL)
6. string_null: Passing unterminated string bwriter._buffer to view, which expects a null-terminated string.
240        header = std::string{bwriter.view()};
241      } else {
242        LOG_ERROR("Error getting uuid string");
243      }

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions