summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2019-07-17 00:39:14 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2019-07-27 14:30:45 +0200
commite1475a38ef89ef7bb36aeb1238bf5f7d139b78e2 (patch)
treebf4c87039e552ac92a140f96d23156bdf37f734a /lib
parent321de68b216400d3542e34d9c64c4aa261e60341 (diff)
downloadrockbox-e1475a38ef89ef7bb36aeb1238bf5f7d139b78e2.tar.gz
rockbox-e1475a38ef89ef7bb36aeb1238bf5f7d139b78e2.tar.bz2
rockbox-e1475a38ef89ef7bb36aeb1238bf5f7d139b78e2.zip
Fix non aligned crashes with tlsf
When the starting address of the plugin buffer is not aligned to 8 bytes crashes occur in tlsf (on ARM atleast) Change-Id: I655500c25e1c8f84b4a2418e9ec5c5948e4bea82
Diffstat (limited to 'lib')
-rw-r--r--lib/tlsf/src/tlsf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tlsf/src/tlsf.c b/lib/tlsf/src/tlsf.c
index b842be470b..cea53c3eb8 100644
--- a/lib/tlsf/src/tlsf.c
+++ b/lib/tlsf/src/tlsf.c
@@ -508,7 +508,8 @@ size_t add_new_area(void *area, size_t area_size, void *mem_pool)
/* FW 28-10-17: disabled memset due to crashes on ARM. Functions
* fine without it. */
- /* memset(area, 0, area_size); */
+ /* BILGUS 17-7-19 re-enabled after setting pluginbuf aligned to 8 bytes */
+ memset(area, 0, area_size);
ptr = tlsf->area_head;
ptr_prev = 0;