Skip to content
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

Add explicit to StringTokenizer ctor and move more to the initializer list in ctor #83

Closed
wants to merge 1 commit into from

Conversation

schwehr
Copy link
Member

@schwehr schwehr commented Apr 11, 2017

Just minor cleanup. A little background on why I made this patch:

I am working on a fuzzer for WktReader and ran into ASAN detecting leak troubles very quickly with things like MULTIPOLYGON (. In trying to work on WktReader, I wanted to make sure I understand StringTokenizer. In writing a test, I was passing "" to the constructor, which created a temp object which was destroyed after the ctor resulting in a use-after-free in my test.

And might as well move everything to the constructor list that I can while I'm looking at the StringTokenizer ctor.

geos/tests/io/StringTokenizer_test.cc:

schwehr/gdal-autotest2@dbe3d75

@strk strk self-assigned this Apr 12, 2017
@strk
Copy link
Member

strk commented Apr 12, 2017 via email

@strk strk closed this Apr 12, 2017
@strk
Copy link
Member

strk commented Apr 15, 2017

@schwehr for some reason Appveyor is now reporting a failure after my commit, can you see why ?
Reported in https://trac.osgeo.org/geos/ticket/831

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants