Commit 8034baf9 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Protect against too large arrays sent to accept_async.

Don't include .h files from .h files.
Minor cleanups.
parent 16f66184
Fri Jul 26 02:11:38 1996 Per Cederqvist <>
* Protect against too large arrays sent to accept_async:
* prot-a-parse.c, prot-a-parse.h (prot_a_parse_num_list): New
argument: maxlen. Rewritten.
* session.c (accept_async): prot_a_parse_num_list sets data to
NULL and length to a non-zero value if the client sent a too big
array. Check for that condition instead of checking if the length
was greater than ay_dummy_last. Set kom_errno to KOM_LONG_ARRAY
instead of KOM_INDEX_OUT_OF_RANGE if the array was too big.
* server-config.c (parameters): New config: "Max accept_async len".
* fncdef.txt (mark_as_read): Make param.mark_as_read_chunk visible
(create_text, create_anonymous_text): Make param.max_crea_misc
visible here.
(accept_async): Added param.accept_async_len.
* param.h (kom_par): New field: accept_async_len.
* prot-a.c (prot_a_init): Set array_parse_index.
* prot-a-parse-arg-c.awk: Make prot-a-parse-arg.c include async.h.
c_local_text_no_p, c_misc_info_p and num_list should be followed
by a maximum array length in fncdef.txt. Use array_parse_index
instead of array_parse_pos to count the array index. Added a
missing newline in the generated code.
* internal-connections.c (init_connection): Initialize
* connections.h (Connection): New field: array_parse_index.
* connections.c (free_parsed): Set array_parse_index.
* cache.h (match_table): Added a missing "extern".
* dbck.c (kom_info): Added a missing "extern".
* connections.h: Don't include async.h -- no .h file in lyskomd
should include another .h file. Why? Well, mostly because that
is the way it is in the rest of lyskomd.
* admin.c, conference.c, connections.c, internal-connections.c,
isc-parse.c, membership.c, mux-parse.c, mux.c, person.c,
prot-a-output.c, prot-a-parse.c, prot-a-send-async.c, prot-a.c,
ramkomd.c, regex-match.c, send-async.c, session.c, simple-cache.c,
text.c: Include async.h before connections.h.
Thu Jul 25 01:30:53 1996 Per Cederqvist <>
* simple-cache.c: Include string.h.
(TIMESTAMP_FORMAT): Unused define removed.
(pre_sync): Removed a call to time() whose return value was never
Wed Jul 24 03:05:48 1996 Per Cederqvist <ceder@link> Wed Jul 24 03:05:48 1996 Per Cederqvist <ceder@link>
* dbck.c (main): Die with an error message if an unsupported * dbck.c (main): Die with an error message if an unsupported
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment