Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
583b42bb
Commit
583b42bb
authored
Aug 09, 1998
by
Per Cederqvist
Browse files
(local_to_global): Check that the no_of_texts argument isn't larger
than 255.
parent
669721af
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/text.c
View file @
583b42bb
/*
* $Id: text.c,v 0.5
3
1998/08/0
7 23:17:27
ceder Exp $
* $Id: text.c,v 0.5
4
1998/08/0
9 07:18:13
ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -29,7 +29,7 @@
*/
static
const
char
*
rcsid
=
"$Id: text.c,v 0.5
3
1998/08/0
7 23:17:27
ceder Exp $"
;
rcsid
=
"$Id: text.c,v 0.5
4
1998/08/0
9 07:18:13
ceder Exp $"
;
#include
"rcs.h"
USE
(
rcsid
);
...
...
@@ -3041,8 +3041,8 @@ get_map(Conf_no conf_no,
}
extern
Success
local_to_global
(
Conf_no
conf_no
,
Local_text_no
first_local_no
,
local_to_global
(
Conf_no
conf_no
,
Local_text_no
first_local_no
,
unsigned
long
no_of_texts
,
Text_mapping
*
result
)
{
...
...
@@ -3057,6 +3057,13 @@ local_to_global(Conf_no conf_no,
return
FAILURE
;
}
if
(
no_of_texts
>
255
)
{
err_stat
=
255
;
kom_errno
=
KOM_LONG_ARRAY
;
return
FAILURE
;
}
CHK_LOGIN
(
FAILURE
);
GET_C_STAT
(
conf_c
,
conf_no
,
FAILURE
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment