Skip to content

Commit

Permalink
pcs: Give MSP a bit of head room for ADAM_USER size
Browse files Browse the repository at this point in the history
Turns out that this code is unsafe and tries to sprintf ADAM_USER
into a small fixed-size buffer without any checks. Increase the
buffer to 1024 characters for now but some proper checks are needed.
  • Loading branch information
timj committed Sep 14, 2012
1 parent c69fb5d commit 3903938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/pcs/msp/msp.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
#define MSP__LOCAL -2
#define MSP__EXTERNAL -3

#define MAXPATH 100
#define MAXPATH 1024

/* Older systems do not declare socklen_t */
#if !HAVE_SOCKLEN_T
Expand Down

0 comments on commit 3903938

Please sign in to comment.