pike.git/
src/
encode.c
Branch:
Tag:
Non-build tags
All tags
No tags
1997-12-22
1997-12-22 17:32:59 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
619d59a2a19c5791ed32076af22ed08d630f123e (
7
lines) (+
6
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
doesn't try to allocate negative size mappings any more
Rev: src/encode.c:1.16
437:
case T_MAPPING: {
-
struct mapping *m=allocate_mapping(num);
+
struct mapping *m
;
+
if(num<0)
+
error("Failed to decode string. (mapping size is negative)\n");
+
+
m
=allocate_mapping(num);
tmp.type=T_MAPPING; tmp.u.mapping=m; mapping_insert(data->decoded, & data->counter, &tmp);