Changeset 2ea03be in rtems
- Timestamp:
-
01/12/23 13:38:36
(15 months ago)
- Author:
- Sebastian Huber <sebastian.huber@…>
- Branches:
- master
- Children:
- cac528f8
- Parents:
- 2271b69
- git-author:
- Sebastian Huber <sebastian.huber@…> (01/12/23 13:38:36)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (01/12/23 13:40:38)
- Message:
-
jffs2: Fix return code of rtime compress
The RTEMS and Linux JFFS2 compression support have a slightly different
interface. This fixes a bug introduced by:
commit 17c3d536ca8ee17d36ea251eade884e07ff1ee75
Author: Yang Yang <yang.yang29@…>
Date: Thu Jan 28 02:55:35 2021 -0800
jffs2: check the validity of dstlen in jffs2_zlib_compress()
KASAN reports a BUG when download file in jffs2 filesystem.It is
because when dstlen == 1, cpage_out will write array out of bounds.
Actually, data will not be compressed in jffs2_zlib_compress() if
data's length less than 4.
-
(No files)
-