4c4
< * $Revision: 10 $
---
> * $Revision: 13 $
12c12
< * Some or all of this work - Copyright (c) 1999 - 2003, Intel Corp.
---
> * Some or all of this work - Copyright (c) 1999 - 2004, Intel Corp.
436c436
< /* The list must have a valid END_TAG */
---
> /* Absolute minimum descriptor is an END_TAG (2 bytes) */
438c438
< if (ByteData[ByteCount-1] != (ACPI_RDESC_TYPE_END_TAG | 1))
---
> if (ByteCount < 2)
439a440,446
> return (FALSE);
> }
>
> /* The list must have a valid 2-byte END_TAG */
>
> if (ByteData[ByteCount-2] != (ACPI_RDESC_TYPE_END_TAG | 1))
> {
447c454
< for (CurrentByteOffset = 0; CurrentByteOffset < ByteCount; )
---
> for (CurrentByteOffset = 0; CurrentByteOffset < ByteCount;)
481a489
>
< * $Revision: 10 $
---
> * $Revision: 13 $
12c12
< * Some or all of this work - Copyright (c) 1999 - 2003, Intel Corp.
---
> * Some or all of this work - Copyright (c) 1999 - 2004, Intel Corp.
436c436
< /* The list must have a valid END_TAG */
---
> /* Absolute minimum descriptor is an END_TAG (2 bytes) */
438c438
< if (ByteData[ByteCount-1] != (ACPI_RDESC_TYPE_END_TAG | 1))
---
> if (ByteCount < 2)
439a440,446
> return (FALSE);
> }
>
> /* The list must have a valid 2-byte END_TAG */
>
> if (ByteData[ByteCount-2] != (ACPI_RDESC_TYPE_END_TAG | 1))
> {
447c454
< for (CurrentByteOffset = 0; CurrentByteOffset < ByteCount; )
---
> for (CurrentByteOffset = 0; CurrentByteOffset < ByteCount;)
481a489
>