-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
./tests/iio_attr : move from allocating space on stack to malloc
Dan pointed out that #268 was mostly because iio_attr didn't allocate enough room in it's internal buffers for some large kernel attributes. To resolve this, move the 1k stack allocations to 16k heap allocations via using malloc/free. This patch changes all potential buffers to a malloc. This only effects the test utility iio_attr, not the core library. Signed-off-by: Robin Getz <[email protected]>
- Loading branch information
Showing
1 changed file
with
48 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters