Skip to content

Commit

Permalink
tm: Fix invalid memory access on $T_id reads
Browse files Browse the repository at this point in the history
Reported by Stepan Pologov.

Fixes #1326

(cherry picked from commit dbc1fed)
  • Loading branch information
liviuchircu committed Mar 30, 2018
1 parent a6b3aa9 commit a776ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/tm/tm.c
Expand Up @@ -2213,8 +2213,8 @@ static int pv_get_t_id(struct sip_msg *msg, pv_param_t *param,
pv_value_t *res)
{
#define INTasHEXA_SIZE (sizeof(int)*2)
static char buf[INTasHEXA_SIZE+1+INTasHEXA_SIZE];
struct cell *t;
char buf[INTasHEXA_SIZE+1+INTasHEXA_SIZE];
char *p;
int size;

Expand Down

0 comments on commit a776ff6

Please sign in to comment.