-
Notifications
You must be signed in to change notification settings - Fork 17
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
Serious memory bugs parsing provider file #1
Comments
In addition, |
Hi, In the next patch I'm going to submit you will find several fixes and some
The issue of split_str was already fixed in the gpg branch, but tbh I had no Something about testingHere [1] a simple output related to some testing performed after producing
Feel free to take a look, comment or chime in (and drive me) if you have ideas to optimize the code base of produce fixes for both style or features. And again, thanks a lot for pointing me out to this bug. |
This patch represents a rework of the main parsing providerrc function which is afftected by serious memory leaks. The purpose of the fix is to revisit the code base providing a few improvements and optimizations in the way the memory structures are allocated, used and freed. Finally, the print function is improved and now it allows to get some basic json like output. Closes: #1 Signed-off-by: fmount <fmount@inventati.org>
This patch represents a rework of the main parsing providerrc function which is afftected by serious memory leaks. The purpose of the fix is to revisit the code base providing a few improvements and optimizations in the way the memory structures are allocated, used and freed. Finally, the print function is improved and now it allows to get some basic json like output. Closes: #1 Signed-off-by: fmount <fmount@inventati.org>
This patch represents a rework of the main parsing providerrc function which is afftected by serious memory leaks. The purpose of the fix is to revisit the code base providing a few improvements and optimizations in the way the memory structures are allocated, used and freed. Finally, the print function is improved and now it allows to get some basic json like output. Closes: #1 Signed-off-by: fmount <fmount@inventati.org>
This patch represents a rework of the main parsing providerrc function which is afftected by serious memory leaks. The purpose of the fix is to revisit the code base providing a few improvements and optimizations in the way the memory structures are allocated, used and freed. Finally, the print function is improved and now it allows to get some basic json like output. The main function is reworked as well, the switch case statement is turned into a section which can be used only for getting input and validating it. A new flow is then added to continue the execution according to the cli parameters: if -b<key> is received it has the highest priority over the other cli options (single shot mode), or the otp computing is run in loop mode (if '-s' is specified). Closes: #1 Signed-off-by: fmount <fmount@inventati.org> The switch-case statement in the main function should be used for processing cli parameters only. Signed-off-by: fmount <fmount@inventati.org>
This patch represents a rework of the main parsing providerrc function which is afftected by serious memory leaks. The purpose of the fix is to revisit the code base providing a few improvements and optimizations in the way the memory structures are allocated, used and freed. Finally, the print function is improved and now it allows to get some basic json like output. The main function is reworked as well, the switch case statement is turned into a section which can be used only for getting input and validating it. A new flow is then added to continue the execution according to the cli parameters: if -b<key> is received it has the highest priority over the other cli options (single shot mode), or the otp computing is run in loop mode (if '-s' is specified). Closes: #1 Signed-off-by: fmount <fmount@inventati.org>
In
lib/parser.c
split_str
, strings are not null-terminated and insufficient space is allocated to terminate them. This prevents the functionality from working at all unless you "get lucky".The text was updated successfully, but these errors were encountered: