aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/playerdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/playerdb.c')
-rw-r--r--FICS/playerdb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c
index 18c3188..08c4689 100644
--- a/FICS/playerdb.c
+++ b/FICS/playerdb.c
@@ -972,6 +972,9 @@ got_attr_value_player(int p, char *attr, char *value, FILE *fp, char *file)
if ((i = atoi(value)) < 0) {
warnx("%s: num censor negative", __func__);
return -1;
+ } else if (i > MAX_CENSOR) {
+ warnx("%s: num censor too large", __func__);
+ return -1;
}
while (i--) {
@@ -994,6 +997,9 @@ got_attr_value_player(int p, char *attr, char *value, FILE *fp, char *file)
if ((i = atoi(value)) < 0) {
warnx("%s: num notify negative", __func__);
return -1;
+ } else if (i > MAX_NOTIFY) {
+ warnx("%s: num notify too large", __func__);
+ return -1;
}
while (i--) {