"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
"Todd C. Miller" <Todd.Miller@sudo.ws>
Subject:
Re: fix object header parser for zero-length object headers
To:
Stefan Sperling <stsp@stsp.name>
Cc:
gameoftrees@openbsd.org
Date:
Fri, 28 Jan 2022 08:17:25 -0700

Download raw body.

Thread
Now that you guarantee that buf is NUL-terminated there is no need
for strnlen() so you can just do:

	(*obj)->hdrlen = strlen(buf) + 1 /* '\0' */;

 - todd