pike.git/
src/
pike_types.c
Branch:
Tag:
Non-build tags
All tags
No tags
2007-01-10
2007-01-10 19:09:14 by Henrik Grubbström (Grubba) <grubba@grubba.org>
6e878a76c184a91c6c594e2d3573bd3f6268f7ee (
5
lines) (+
3
/-
2
)
[
Show
|
Annotate
]
Branch:
7.9
Fixed one byte overflow in internal_parse_typeA() found by Klocwork.
Rev: src/pike_types.c:1.261
2:
|| This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: pike_types.c,v 1.
260
2007/01/
08
09:
24:21
grubba Exp $
+
|| $Id: pike_types.c,v 1.
261
2007/01/
10
19:
09:
14
grubba Exp $
*/ #include "global.h"
1048:
for(len=0;isidchar(EXTRACT_UCHAR(s[0]+len));len++) {
-
if(len>=sizeof(buf)) {
+
if(len>=sizeof(buf)
-1
) {
my_yyerror("Buffer overflow in parse_type(\"%s\") (limit %"PRINTSIZET"d).", *s, sizeof(buf)); push_type(T_MIXED);