Skip to content

Commit

Permalink
Push sanity check to 15 Meg maximum. (#928)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
KD4Z committed Jun 2, 2021
1 parent 359b489 commit efa2ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applet/src/usersdb.c
Expand Up @@ -123,7 +123,7 @@ static int find_dmr_user(char *outstr, int dmr_search, const char *data, int out


// filesize @ 20160420 is 2279629 bytes // filesize @ 20160420 is 2279629 bytes
// @ 20170213 is 2604591 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); return(0);


const char *data_start = next_line_ptr(data); const char *data_start = next_line_ptr(data);
Expand Down

0 comments on commit efa2ff6

Please sign in to comment.