From c843dd7862df4616e0df03f1b8e6f298f0d1bfdd Mon Sep 17 00:00:00 2001 From: Jyrki Berg <12322333+jyberg@users.noreply.github.com> Date: Sun, 17 Dec 2023 12:11:55 +0200 Subject: [PATCH] Corrected: Null pointer dereference in the event queue handling code #34 --- library.json | 2 +- library.properties | 2 +- readme.md | 2 +- release_notes.md | 3 +++ src/NexHardware.cpp | 2 +- version.txt | 2 +- 6 files changed, 8 insertions(+), 5 deletions(-) diff --git a/library.json b/library.json index dad37b90..8bc944c6 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "Enhanced-Nextion-Library", - "version": "1.4.2", + "version": "1.4.3", "repository": { "type": "git", "url": "https://github.com/jyberg/Enhanced-Nextion-Library.git", diff --git a/library.properties b/library.properties index 05b54e97..66e71e79 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Enhanced-Nextion-Library -version=1.4.2 +version=1.4.3 license=MIT author=Jyrki Berg maintainer=Jyrki Berg diff --git a/readme.md b/readme.md index 752c6c24..cbddfc9e 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,6 @@ # Enhanced Nextion Library with multi display instance support -Jyrki Berg 2/8/2020 () Version 1.4.2 +Jyrki Berg 2/8/2020 () Version 1.4.3 ## Introduction diff --git a/release_notes.md b/release_notes.md index cc3bbd8e..88df8091 100644 --- a/release_notes.md +++ b/release_notes.md @@ -1,6 +1,9 @@ # Release Notes -------------------------------------------------------------------------------- +# Release v1.4.3 +Corrected issue: Null pointer dereference in the event queue handling code #34 + # Release v1.4.2 Enabled attachPush call back function initialization for every component. diff --git a/src/NexHardware.cpp b/src/NexHardware.cpp index d8ac4400..84a29ab8 100644 --- a/src/NexHardware.cpp +++ b/src/NexHardware.cpp @@ -94,7 +94,7 @@ void Nextion::ReadQueuedEvents() } else { - nexQueuedEvent *last = m_queuedEvents->m_next; + nexQueuedEvent *last = m_queuedEvents; while( last->m_next) { last = last->m_next; diff --git a/version.txt b/version.txt index 9d9d0841..269a9af7 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.4.2 +1.4.3