public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] [2.6.25-rc5] Fix a memory overflow bug when copying NULL internal package element object to external.
@ 2008-03-12  0:06 Thomas Renninger
  2008-03-12  3:53 ` Len Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Renninger @ 2008-03-12  0:06 UTC (permalink / raw)
  To: Len Brown; +Cc: linux-acpi, Zhang, Rui, ming.m.lin

From: Lin Ming <ming.m.lin@intel.com>

Fix a memory overflow bug when copying
NULL internal package element object to external.

Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Tested-by: Thomas Renninger <trenn@suse.de>

---
 drivers/acpi/utilities/utobject.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6/drivers/acpi/utilities/utobject.c
===================================================================
--- linux-2.6.orig/drivers/acpi/utilities/utobject.c
+++ linux-2.6/drivers/acpi/utilities/utobject.c
@@ -432,7 +432,7 @@ acpi_ut_get_simple_object_size(union acp
 	 * element -- which is legal)
 	 */
 	if (!internal_object) {
-		*obj_length = 0;
+		*obj_length = sizeof(union acpi_object);
 		return_ACPI_STATUS(AE_OK);
 	}
 




--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/3] [2.6.25-rc5] Fix a memory overflow bug when copying NULL internal package element object to external.
  2008-03-12  0:06 [PATCH 1/3] [2.6.25-rc5] Fix a memory overflow bug when copying NULL internal package element object to external Thomas Renninger
@ 2008-03-12  3:53 ` Len Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Len Brown @ 2008-03-12  3:53 UTC (permalink / raw)
  To: trenn; +Cc: linux-acpi, Zhang, Rui, ming.m.lin

this one is already in via bugzilla 10132.

thanks,
-Len

On Tuesday 11 March 2008, Thomas Renninger wrote:
> From: Lin Ming <ming.m.lin@intel.com>
> 
> Fix a memory overflow bug when copying
> NULL internal package element object to external.
> 
> Signed-off-by: Lin Ming <ming.m.lin@intel.com>
> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
> Tested-by: Thomas Renninger <trenn@suse.de>
> 
> ---
>  drivers/acpi/utilities/utobject.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> Index: linux-2.6/drivers/acpi/utilities/utobject.c
> ===================================================================
> --- linux-2.6.orig/drivers/acpi/utilities/utobject.c
> +++ linux-2.6/drivers/acpi/utilities/utobject.c
> @@ -432,7 +432,7 @@ acpi_ut_get_simple_object_size(union acp
>  	 * element -- which is legal)
>  	 */
>  	if (!internal_object) {
> -		*obj_length = 0;
> +		*obj_length = sizeof(union acpi_object);
>  		return_ACPI_STATUS(AE_OK);
>  	}
>  
> 
> 
> 
> 


--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-12  3:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-12  0:06 [PATCH 1/3] [2.6.25-rc5] Fix a memory overflow bug when copying NULL internal package element object to external Thomas Renninger
2008-03-12  3:53 ` Len Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox