1503922,
1503986
Honest, you don't want the NUL terminator in the
FILE open_buffer_as_file() (or more accurately,
fmemopen()) creates.
1503983
curl_escape() call; if you pass 0 for length, the
function itself will call strlen() to determine length.
fr_pair_t *vp;
fr_pair_list_t list;
char const *buffer = "Test-Uint32-0 = 123\nTest-String-0 = \"Testing123\"\n";
+ /* coverity[alloc_strlen] */
FILE *fp = open_buffer_as_file(buffer, strlen(buffer));
bool pfiledone;
fr_pair_list_t old_list, new_list;
bool pfiledone;
char const *fake_file = "Test-Uint32-0 = 123\nTest-String-0 = \"Testing123\"\n";
+ /* coverity[alloc_strlen] */
FILE *fp = open_buffer_as_file(fake_file, strlen(fake_file));
fr_pair_list_init(&old_list);
{
char *escaped;
+ /* coverity[alloc_strlen] */
escaped = curl_escape(raw, strlen(raw));
strlcpy(out, escaped, outlen);
curl_free(escaped);