Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Acpica trivial #200

Closed
wants to merge 1 commit into from
Closed

Acpica trivial #200

wants to merge 1 commit into from

Conversation

zetalog
Copy link
Contributor

@zetalog zetalog commented Jan 6, 2017

BZ 1335.

Recent trivial bug fixes.

It is reported by CoverityScan tool that AcpiPsGetNextArg() contains a
potential memory leak problem in AcpiPsGetNextArg() when FIELDLIST is
parsed (Link #1).

This patch fixes this issue by introducing a concept of a specific type of
argument which can contain variable number of elements. By doing so, this
patch also sorts the order of the fields. Now fields are stored in the
parser in the same order as they appear in the AML.

Instead of cleaning up ArgCount (which was designed for the same purpose,
but used as the indicator of initiating a new stacked parser state), this
patch introduces VarArgs to support the arguments that can contain variable
number of elements.

Link: https://bugs.acpica.org/show_bug.cgi?id=1335 [#1]
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
@zetalog
Copy link
Contributor Author

zetalog commented Feb 27, 2017

Re-instatiate this fix in pull request #213 in order to solve conflicts, so closing this one.

@zetalog zetalog closed this Feb 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant