ref: da20365290ec901ebcdc284f472dd0f01670eaf2
parent: a13a30e854d22639dc34b5502b402d8a579966e6
author: cinap_lenrek <[email protected]>
date: Thu Aug 2 18:22:05 EDT 2012
libauth: fix authrpc buffer overflow (import from sources)
--- a/sys/include/auth.h
+++ b/sys/include/auth.h
@@ -35,7 +35,7 @@
struct AuthRpc
{
int afd;
- char ibuf[AuthRpcMax];
+ char ibuf[AuthRpcMax+1]; /* +1 for NUL in auth_rpc.c */
char obuf[AuthRpcMax];
char *arg;
uint narg;