Re: [libvirt PATCH v2 2/2] qemu_migration_cookie: Properly fetch cert DN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/11/22 13:29, Jiri Denemark wrote:
> If 1024 was not enough to fit the DN, gnutls_x509_crt_get_dn would store
> the required size in subjectlen. And since we're not checking the return
> value of this function, we would happily overwrite some random memory.
> 
> Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
> ---
> 
> Notes:
>     Version 2:
>     - do not pass NULL to the first gnutls_x509_crt_get_dn call
> 
>  src/qemu/qemu_migration_cookie.c | 20 ++++++++++++++------
>  1 file changed, 14 insertions(+), 6 deletions(-)
> 

Reviewed-by: Michal Privoznik <mprivozn@xxxxxxxxxx>

Michal




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux