-
Notifications
You must be signed in to change notification settings - Fork 466
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
F/csvparser refinements #741
Conversation
Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
It really doesn't have an added value and makes identifiers overly long. Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
This is the only derived class that uses it, originally I wanted to use LogColumnParser to be used for stuff like a fixed-position based parser, but 1) that didn't happen in the past, 2) I can't see that happening in the foreseeable future 3) LogColumnParser will probably not be applicable anyway And removing this makes the code much easier to follow. Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
…g it Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
Previously only the pointer was borrowed, which is of course not correct and can cause use-after-free conditions if the original CSVParser is destroyed. Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
Instead of the open-coded, csv-parser specific constructs, use the one provided by the core, making csvparser simpler and easier to read. Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
Signed-off-by: Balazs Scheidler <balazs.scheidler@balabit.com>
e767128
to
4e1d0a7
Compare
I think the latest update of this branch addresses all review comments. |
@lbudai Did you review the new force push before merging? He has many code changes since the last reviews. |
yep (Bazsi mentioned in his last comment that he made modifications) ( sorry for not waiting to react your own review notes but my plan was to starting releasing the 3.7.2 on today morning, and this PR fixes a possible double-free issue and I wanted to include in 3.7.2 ) |
Sorry for the force push. I didn't know that github removes the comments in this case (or I knew I just forgot ;). Next time, I am going to commit followup patches until they are reviewed as well, and then merge back to the base. I only changed the string-list related stuff for two reasons:
I also added some (but still pretty limited) coverage for these functions. |
That strategy sounds nice, thank you. Actually, I had asked Laci in person On Wed, Oct 21, 2015 at 5:43 PM, Balazs Scheidler notifications@github.com
|
This is the first chunk of my work to clean up the code for csv-parser. I only wanted to add a single and simple option, but the code doesn't really help, rather it became rather convoluted.
So instead of adding the new option, I started refactoring what we have there.
There is at least one important bugfix here, one that fixes the clone() method. That should probably be backported to earlier versions as well.
I also have yet another batch of patches, but that still needs some cleanup, so I submit this, hopefully reviewing this in smaller steps is easier.
Cheers,
Bazsi