Skip to content

Commit

Permalink
ProcRRSetCrtcConfigs uses 'configs' without being initialized
Browse files Browse the repository at this point in the history
If the client sends invalid data for this request, the server
will jump to 'sendReply' and call RRFreeCrtcConfigs, passing it the
uninitialized 'configs' and 'num_configs' values.

Signed-off-by: Keith Packard <[email protected]>
Reviewed-by: Aaron Plattner <[email protected]>
  • Loading branch information
keith-packard committed Dec 7, 2010
1 parent 752c368 commit b0f4bd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions randr/rrcrtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1682,9 +1682,9 @@ ProcRRSetCrtcConfigs (ClientPtr client)
rrScrPrivPtr scr_priv;
xRRCrtcConfig *x_configs;
RRScreenConfigRec screen_config;
RRCrtcConfigPtr configs;
RRCrtcConfigPtr configs = NULL;
RROutput *output_ids;
int num_configs;
int num_configs = 0;
int rc, i;
int extra_len;
int num_output_ids;
Expand Down

0 comments on commit b0f4bd6

Please sign in to comment.