MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / releasePrefixedStringValue

Function releasePrefixedStringValue

json/jsoncpp.cpp:2621–2628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2619 */
2620#if JSONCPP_USING_SECURE_MEMORY
2621static inline void releasePrefixedStringValue(char* value) {
2622 unsigned length = 0;
2623 char const* valueDecoded;
2624 decodePrefixedString(true, value, &length, &valueDecoded);
2625 size_t const size = sizeof(unsigned) + length + 1U;
2626 memset(value, 0, size);
2627 free(value);
2628}
2629static inline void releaseStringValue(char* value, unsigned length) {
2630 // length==0 => we allocated the strings memory
2631 size_t size = (length == 0) ? strlen(value) : length;

Callers 1

releasePayloadMethod · 0.85

Calls 1

decodePrefixedStringFunction · 0.85

Tested by

no test coverage detected