Skip to content

src: fix intermittent SIGSEGV in resolveTxt#960

Closed
evanlucas wants to merge 1 commit into
nodejs:v1.xfrom
evanlucas:dns-txt-fix
Closed

src: fix intermittent SIGSEGV in resolveTxt#960
evanlucas wants to merge 1 commit into
nodejs:v1.xfrom
evanlucas:dns-txt-fix

Conversation

@evanlucas

Copy link
Copy Markdown
Contributor

Fixes a SIGSEGV by making sure txt_chunk is not empty before setting
it on txt_records

Ref: nodejs/node-v0.x-archive#9285

@rvagg

rvagg commented Feb 25, 2015

Copy link
Copy Markdown
Member

Are we upstreaming these or are we giving up on working with c-ares?

@rvagg

rvagg commented Feb 25, 2015

Copy link
Copy Markdown
Member

Oh, sorry, this is the wrap. Ignore that comment then!

LGTM and we can get this in 1.4.0.

@cjihrig

cjihrig commented Feb 26, 2015

Copy link
Copy Markdown
Contributor

The following code reproduces the error with a well known site. Do you think it's worth adding this to the internet test suite?

var dns = require('dns');

dns.resolveTxt('www.microsoft.com', function(err, res) {
   console.log(err);
   console.log(res);
});

@rvagg

rvagg commented Feb 26, 2015

Copy link
Copy Markdown
Member

@cjihrig probably .. it's simple enough and should probably go in test/internet

@evanlucas

Copy link
Copy Markdown
Contributor Author

k, ill add that

Fixes a SIGSEGV by making sure `txt_chunk` is not empty before setting
it on `txt_records`
@evanlucas

Copy link
Copy Markdown
Contributor Author

Test has been added

@rvagg

rvagg commented Feb 26, 2015

Copy link
Copy Markdown
Member

lgtm, land it

evanlucas added a commit that referenced this pull request Feb 26, 2015
Fixes a SIGSEGV by making sure `txt_chunk` is not empty before setting
it on `txt_records`

PR-URL: #960
Reviewed-By: Rod Vagg <rod@vagg.org>
@evanlucas

Copy link
Copy Markdown
Contributor Author

Landed in e435a01

@evanlucas evanlucas closed this Feb 26, 2015
@evanlucas
evanlucas deleted the dns-txt-fix branch February 26, 2015 04:48
@rvagg rvagg mentioned this pull request Feb 26, 2015
evanlucas added a commit to evanlucas/node-v0.x-archive that referenced this pull request Feb 26, 2015
Fixes a SIGSEGV by making sure `txt_chunk` is not empty before setting
it on `txt_records`

PR-URL: nodejs/node#960
Reviewed-By: Rod Vagg <rod@vagg.org>
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.

3 participants