From d80a9e12262ca92f260ec91bc7f6373aed4cab72 Mon Sep 17 00:00:00 2001 From: sezero Date: Wed, 5 Aug 2015 14:47:25 +0000 Subject: [PATCH] common.c (MSG_ReadString): replaced MSG_ReadChar with MSG_ReadByte to avoid potentional vulnerability (icculus.org quake2 svn rev. 180.) git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1240 af15c1b1-3010-417e-b628-4374ebc0bcbd --- quakespasm/Quake/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quakespasm/Quake/common.c b/quakespasm/Quake/common.c index 98978703..baaaac1a 100644 --- a/quakespasm/Quake/common.c +++ b/quakespasm/Quake/common.c @@ -812,7 +812,7 @@ const char *MSG_ReadString (void) l = 0; do { - c = MSG_ReadChar (); + c = MSG_ReadByte (); if (c == -1 || c == 0) break; string[l] = c;