Skip to content

Commit

Permalink
libs/fst: Update from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
KrystalDelusion committed Oct 16, 2024
1 parent 5f83d4d commit 827e5ba
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions libs/fst/fstapi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,9 @@ return(rc);

static uint32_t fstReaderVarint32(FILE *f)
{
int chk_len = 5; /* TALOS-2023-1783 */
unsigned char buf[chk_len];
const int chk_len_max = 5; /* TALOS-2023-1783 */
int chk_len = chk_len_max;
unsigned char buf[chk_len_max];
unsigned char *mem = buf;
uint32_t rc = 0;
int ch;
Expand Down Expand Up @@ -582,8 +583,9 @@ return(rc);

static uint32_t fstReaderVarint32WithSkip(FILE *f, uint32_t *skiplen)
{
int chk_len = 5; /* TALOS-2023-1783 */
unsigned char buf[chk_len];
const int chk_len_max = 5; /* TALOS-2023-1783 */
int chk_len = chk_len_max;
unsigned char buf[chk_len_max];
unsigned char *mem = buf;
uint32_t rc = 0;
int ch;
Expand Down Expand Up @@ -615,8 +617,9 @@ return(rc);

static uint64_t fstReaderVarint64(FILE *f)
{
int chk_len = 16; /* TALOS-2023-1783 */
unsigned char buf[chk_len];
const int chk_len_max = 16; /* TALOS-2023-1783 */
int chk_len = chk_len_max;
unsigned char buf[chk_len_max];
unsigned char *mem = buf;
uint64_t rc = 0;
int ch;
Expand Down

0 comments on commit 827e5ba

Please sign in to comment.