summaryrefslogtreecommitdiffstats
path: root/usr.sbin/acpi/acpidb/acpidb.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC: r284583, r285797, r285799, r287168, r298714, r298720, r298838,jkim2016-09-301-2/+5
| | | | | | | | r300879 Merge ACPICA up to 20160527. Requested by: mav
* MFC r300633truckman2016-06-011-10/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix acpidb CIDs 1011279 (Buffer not null terminated) and 978405 and 1199380 (Resource leak). load_dsdt() calls strncpy() to copy a filename and Coverity warns that the destination buffer may not be NUL terminated. Fix this by using strlcpy() instead. If silent truncation occurs, then the filename was not valid anyway. load_dsdt() leaks an fd (CID 978405) and a memory region allocated using mmap() (CID 1199380) when it returns. Fix these by calling close() and munmap() as appropriate. Don't bother fixing the minor memory leak "list", allocated by AcGetAllTablesFromFile() (CID 1355191). Check for truncation when creating the temp file name. Set a flag to indicate that the temp file should be unlinked. Relying on a strcmp() test could delete the input file in contrived cases. Reported by: Coverity CID: 1011279, 978405, 1199380 Reviewed by: jkim Differential Revision: https://reviews.freebsd.org/D6368
* MFC: r283092, r283966jkim2015-06-161-1/+1
| | | | | | Merge ACPICA 20150515. Relnotes: yes
* MFC r272444 (by jkim):dim2015-04-041-2/+21
| | | | | | | | | | | Merge ACPICA 20140926. MFC r278970 (by jkim): Merge ACPICA 20141107 and 20150204. Approved by: jkim Relnotes: yes
* Consistently cast ACPICA 64-bit integer types when we print them.jkim2013-06-261-2/+2
|
* Fix declarations to slightly increase WARNS level.jkim2013-04-231-5/+8
|
* Merge ACPICA 20111123.jkim2011-11-281-1/+2
|
* Plug fd leakskevlo2011-11-231-0/+1
|
* Merge ACPICA 20100121.jkim2010-01-211-7/+7
|
* Import ACPICA 20090521.jkim2009-06-051-4/+9
|
* Catch up with ACPI-CA 20070320 import.jkim2007-03-221-18/+16
|
* Catch up with ACPI-CA 20051021 importjkim2005-11-011-3/+3
|
* Catch up with the kernel and set any global variables we are using, innjl2005-01-031-0/+6
| | | | | | particular, enabling interpreter workarounds for bad ASL. MFC after: 1 day
* Two uint32_t casts crept in where they shouldn't have.philip2004-11-131-2/+2
| | | | ACPI_TYPE_INTEGER can be 64 bits wide in acpi v2.
* Change some formats and add some casts to make thisphilip2004-11-131-22/+19
| | | | | | | WARNS=2 clean, and mark it as such. PR: 71672 (partly) Reviewed by: njl
* Add the acpidb and iasl utilities. This is not yet hooked up to the build.njl2003-08-071-0/+497
Obtained from: acpicatools port by Iwasaki-san
OpenPOWER on IntegriCloud