On Wed, Apr 15, 2009 at 03:43:39PM +1000, Peter Hutterer wrote:
> XkbGetRulesDftls may get a copy of what will later be freed when passed into
> XkbSetRulesDftls.
> 
> On the second run of XkbGet/SetRulesDflts:
> XkbGetRulesDflts(rmlvo)
>         rmlvo->rules = current-rules
> 
> XkbSetRulesDflts(rmlvo)
>         free(current-rules)
>         current-rules = strdup(rmlvo->rules)
> 
> Leaving us with garbage in current-rules.
> 
> This patch requires callers of XkbGetRulesDflts to free the associated memory.
> 
> See also
> http://lists.freedesktop.org/archives/xorg-devel/2009-February/000305.html
> 
> Reported-by: Benjamin Close <[email protected]>
> Signed-off-by: Peter Hutterer <[email protected]>

Signed-off-by: Daniel Stone <[email protected]>

Attachment: signature.asc
Description: Digital signature

_______________________________________________
xorg-devel mailing list
[email protected]
http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to