Push sanity check to 15 Meg maximum. (#928)
Maximum useable space for contact data is 15 Megs. Above that, we are into the OEM zone and bad things are likely happening elsewhere anyway.
KD4Z committed Jun 2, 2021
1 parent 359b489 commit efa2ff61e457b2ba49ec77fd94fad37488de6b53
Unified Split
Showing with 1 addition and 1 deletion.
  1. +1 −1 applet/src/usersdb.c
@@ -123,7 +123,7 @@ static int find_dmr_user(char *outstr, int dmr_search, const char *data, int out

// filesize @ 20160420 is 2279629 bytes
// @ 20170213 is 2604591 bytes
if (datasize == 0 || datasize > 9437183) // 9 Meg sanity limit
if (datasize == 0 || datasize >15728639) // 15 Meg sanity limit
return(0);

const char *data_start = next_line_ptr(data);

0 comments on commit efa2ff6

Please sign in to comment.

Maximum useable space for contact data is 15 Megs. Above that, we are into the OEM zone and bad things are likely happening elsewhere anyway.