Skip to content

#1323 Restores the NULL string where appropriate#1325

Merged
zwoop merged 1 commit intoapache:masterfrom
zwoop:#1323
Jan 14, 2017
Merged

#1323 Restores the NULL string where appropriate#1325
zwoop merged 1 commit intoapache:masterfrom
zwoop:#1323

Conversation

@zwoop
Copy link
Copy Markdown
Contributor

@zwoop zwoop commented Jan 13, 2017

No description provided.

@zwoop zwoop added this to the 7.1.0 milestone Jan 13, 2017
@zwoop zwoop self-assigned this Jan 13, 2017
@zwoop zwoop requested a review from jpeach January 13, 2017 15:32
@atsci
Copy link
Copy Markdown

atsci commented Jan 13, 2017

FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/1331/ for details.

@atsci
Copy link
Copy Markdown

atsci commented Jan 13, 2017

Linux build successful! See https://ci.trafficserver.apache.org/job/Github-Linux/1225/ for details.

@atsci
Copy link
Copy Markdown

atsci commented Jan 13, 2017

FreeBSD build successful! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/1332/ for details.

@atsci
Copy link
Copy Markdown

atsci commented Jan 13, 2017

Linux build successful! See https://ci.trafficserver.apache.org/job/Github-Linux/1226/ for details.

@zwoop zwoop requested a review from SolidWallOfCode January 13, 2017 21:13
@zwoop
Copy link
Copy Markdown
Contributor Author

zwoop commented Jan 13, 2017

Any takers on reviewing this?

break;
case RECD_STRING:
if (data_string && strcmp((data_string), "nullptr") == 0) {
if (data_string && (strlen(data_string) == 4) && strncmp((data_string), "NULL", 4) == 0) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need the extra strlen here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because amc wanted me to use strncmp(), so if you don't check the length, then it'd also match any string starting with NULL.

@zwoop zwoop merged commit 547ac54 into apache:master Jan 14, 2017
@jpeach
Copy link
Copy Markdown
Contributor

jpeach commented Jan 14, 2017 via email

@zwoop zwoop deleted the #1323 branch January 14, 2017 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants