提交 b66d0f9f 编写于 作者: X xuyong

hievent: fix dos error

ohos inclusion
category:bugfix
issue:#I6AA15
CVE:NA

-----------------------------------

fix hievent driver dos error
Signed-off-by: Nxuyong <xuyong59@huawei.com>
上级 579e5abe
......@@ -255,7 +255,7 @@ static void HieventCoverOldLog(size_t bufLen)
struct HieventEntry header;
size_t totalSize = bufLen + sizeof(struct HieventEntry);
while (totalSize + g_hieventDev.size >= HIEVENT_LOG_BUFFER) {
while (totalSize + g_hieventDev.size > HIEVENT_LOG_BUFFER) {
retval = HieventReadRingBuffer((unsigned char *)&header, sizeof(header));
if (retval < 0) {
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册