[argyllcms] Re: dispwin: memory corruption when loading EDID profile

  • From: Graeme Gill <graeme@xxxxxxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Wed, 14 Aug 2013 09:34:56 +1000

Török Edwin wrote:

> The bug appears to be an off-by-one here:
>                 /* Combined sub-path and profile name */
> -               if ((data_pathfile = malloc(strlen(profile_dir) + 1 + 
> strlen(profile))) == NULL)
> +               if ((data_pathfile = malloc(strlen(profile_dir) + 1 + 
> strlen(profile) + 1)) == NULL)

Thanks.

        Graeme Gill.


Other related posts: