lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Wed, 26 Jun 2024 11:41:16 +0100
From: Mark Brown <broonie@...nel.org>
To: Zhu Jun <zhujun2@...s.chinamobile.com>
Cc: ivan.orlov0322@...il.com, perex@...ex.cz, tiwai@...e.com,
	shuah@...nel.org, linux-sound@...r.kernel.org,
	linux-kselftest@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] selftests/alsa:Replace malloc with calloc

On Wed, Jun 26, 2024 at 02:54:09AM -0700, Zhu Jun wrote:
> Using calloc to handling memory allocation, calloc
> can initialize the allocated memory

>  		SKIP(return, "Can't read patterns. Probably, module isn't loaded");
>  
>  	card_name = malloc(127);
> +	memset(card_name, 0, 127);
>  	ASSERT_NE(card_name, NULL);
>  	self->params.buffer_size = 16384;
>  	self->params.period_size = 4096;

The change does not match the changelog.

Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ