Skip to content

Check return from calloc #655

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

Merged
merged 2 commits into from
Sep 28, 2016
Merged

Check return from calloc #655

merged 2 commits into from
Sep 28, 2016

Conversation

johnno1962
Copy link
Contributor

Minor change mopping up PR #622 to check a calloc return value by popular demand.


if (maxLength > sizeof(stack_buffer) / sizeof(stack_buffer[0])) {
buffer = calloc(sizeof(char), maxLength);
if (!buffer) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: misaligned indenting

@parkera
Copy link
Contributor

parkera commented Sep 26, 2016

@swift-ci please test and merge

@johnno1962
Copy link
Contributor Author

Huh?

@pushkarnk
Copy link
Member

It's the URLSession test timing out again :(

@pushkarnk
Copy link
Member

@swift-ci please test

@johnno1962
Copy link
Contributor Author

HI @parkera, can you retry the test please? Apparently this was a timeout.

@parkera
Copy link
Contributor

parkera commented Sep 28, 2016

@swift-ci please test and merge

@swift-ci swift-ci merged commit 29cf6cc into swiftlang:master Sep 28, 2016
@johnno1962
Copy link
Contributor Author

Thanks

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.

5 participants