1. Either coverity has changed or pen_buffer_as_file() has,
because an essentially identical use of it isn't annotated
and doesn't register a defect, so the annotaion can go.
2. The curl_escape() call now just passes 0 and lets the
function itself call strlen(), so that annotation should
be unneccessary.
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((uint8_t const *)fake_file, strlen(fake_file));
fr_pair_list_init(&old_list);
{
char *escaped;
- /* coverity[alloc_strlen] */
escaped = curl_escape(raw, 0);
strlcpy(out, escaped, outlen);
curl_free(escaped);