-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dlt_config_file_parser.c:Fix a pointer release bug in the file。 #376
Conversation
Thanks @Safe-BCY , |
Thank you, I will resubmit according to the format. |
The format has been modified as required, please check。 |
further information:The Same pointer(s->name)is freed again in the dlt_config_file _release。 void dlt_config_file_release(DltConfigFile *file)
} |
@Safe-BCY |
|
Sorry, this is the first time I submit PR.Please see if what I submit now meets the requirements. |
@Safe-BCY ,
Thank you, |
In the dlt_config_file_set_section function of dlt_config_file_parser.c: s-name is not set to null after free. It will be freed again in the dlt_config_file_release function. Signed-off-by: Zhongyang.Bao <[email protected]>
Thank you. I have revised it again. Please check it, please. |
@Safe-BCY |
May I ask if you can help apply for CVE number? |
@thanhbnq May I ask if you can help apply for CVE number? |
CVE-2022-31291 seems to have been assigned for this issue. |
Thank you. |
In the dlt_config_file_set_section function of dlt_config_file_parser.c, the following code exists:
s-name is not set to null after free.
It will be freed again in the dlt_config_file_release function.