Comments (3)
The above change leaves memleak for mb_data_status
, so I think the above change needs fixing.
Instead, how about just adding null-check in mailimap_mailbox_data_status_free
?
--- libetpan-1.9.4.orig/src/low-level/imap/mailimap_types.c 2019-11-02 02:58:50.000000000 +0900
+++ libetpan-1.9.4/src/low-level/imap/mailimap_types.c 2022-11-23 14:58:47.075176654 +0900
@@ -1389,9 +1389,12 @@ void
mailimap_mailbox_data_status_free(struct mailimap_mailbox_data_status * info)
{
mailimap_mailbox_free(info->st_mailbox);
- clist_foreach(info->st_info_list, (clist_func) mailimap_status_info_free,
+ if (info->st_info_list)
+ {
+ clist_foreach(info->st_info_list, (clist_func) mailimap_status_info_free,
NULL);
- clist_free(info->st_info_list);
+ clist_free(info->st_info_list);
+ }
free(info);
}
from libetpan.
CVE-2022-4121 has been assigned to this issue. @dinhvh, can you take a look, please? Thanks!
from libetpan.
Thank you for bringing up this issue!
from libetpan.
Related Issues (20)
- [BUG] Hang / performance problems with commit HOT 2
- Compiling w/in Xcode make scripts fail when directory tree has a folder name w/ a space character HOT 1
- Clearer README HOT 4
- No such module 'libetpan'
- IMAP 'UID FETCH' response parsing error HOT 7
- build android error HOT 1
- cyrus-sasl build.sh error
- unable to build lib on Mac M1 HOT 3
- mailmime_parse() parses the mail unexpectly HOT 1
- Unable to compile and link the library to my C project on Mac M1pro !
- imap sample code Can not connect to imap.gmail.com HOT 3
- SELECT: parsing fails if FLAGS or PERMANENTFLAGS responses contain parentheses
- Draft new release with security fixes
- etpan.org is down, Please maintain the website. HOT 1
- Building libetpan in Xcode: make scripts fail when any folder in the directory tree has a name with a space character
- A hidden iconv error
- IMAP protocol error communicating with outlook.com
- Please remove legacy VoIP feature HOT 3
- `libetpan` on macOS 10.5–10.6 and `CFNetwork`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libetpan.