Generated v2 prefixes

This commit is contained in:
geky bot
2019-04-16 03:28:41 +00:00

2
lfs2.c
View File

@@ -29,7 +29,7 @@ static inline void lfs2_cache_drop(lfs2_t *lfs2, lfs2_cache_t *rcache) {
static inline void lfs2_cache_zero(lfs2_t *lfs2, lfs2_cache_t *pcache) { static inline void lfs2_cache_zero(lfs2_t *lfs2, lfs2_cache_t *pcache) {
// zero to avoid information leak // zero to avoid information leak
memset(pcache->buffer, 0xff, lfs2->cfg->prog_size); memset(pcache->buffer, 0xff, lfs2->cfg->cache_size);
pcache->block = 0xffffffff; pcache->block = 0xffffffff;
} }