-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 limits.h inclusion to ssl_tls.c and udp_proxy.c #1999
Changes from all commits
8b626f9
a272ce9
233d7e6
f8fa662
89b1a9e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
#else | ||
#include MBEDTLS_CONFIG_FILE | ||
#endif | ||
#include "mbedtls/check_config.h" | ||
|
||
#include <string.h> | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,9 @@ Bugfix | |
a warning with some compilers. Fix contributed by irwir in #2856. | ||
* Fix a function name in a debug message. Contributed by Ercan Ozturk in | ||
#3013. | ||
* Add missing limits.h standard C library header to ssl_tls.c and udp_proxy.c | ||
which was only including it via check_config.h previously, which may not be | ||
included in custom configuration files. Fixes #1803 | ||
Comment on lines
+40
to
+42
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This changelog entry would get added to the section for the already-released version 2.22.0. We no longer merge changelog entries manually. Please create a file in |
||
|
||
Changes | ||
* Mbed Crypto is no longer a Git submodule. The crypto part of the library | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,6 +83,4 @@ | |
*/ | ||
#define MBEDTLS_SSL_MAX_CONTENT_LEN 1024 | ||
|
||
#include "mbedtls/check_config.h" | ||
|
||
#endif /* MBEDTLS_CONFIG_H */ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,6 +112,4 @@ | |
*/ | ||
#define MBEDTLS_SSL_MAX_CONTENT_LEN 1024 | ||
|
||
#include "mbedtls/check_config.h" | ||
|
||
#endif /* MBEDTLS_CONFIG_H */ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3688,6 +3688,4 @@ | |
#include MBEDTLS_USER_CONFIG_FILE | ||
#endif | ||
|
||
#include "mbedtls/check_config.h" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's one place where
If There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The only code in the library that is functionally affected by Feature detection ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fortunately, it turns out that changing the configuration is not necessary: |
||
|
||
#endif /* MBEDTLS_CONFIG_H */ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ | |
#else | ||
#include MBEDTLS_CONFIG_FILE | ||
#endif | ||
#include "mbedtls/check_config.h" | ||
|
||
#include <string.h> | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I've stated before, I don't like this approach. Every library source file is changed to include something that doesn't really concern it.
Furthermore this is unrelated to the original objective of the pull request. It neither fixes the problem nor contributes to making the problem less likely to happen again.
I wouldn't have vetoed the PR on this basis, but since the PR needs rework anyway, please remove the inclusion of
check_config.h
everywhere.To include
check_config.h
everywhere, ondevelopment
, add it tolibrary/common.h
, which was added todevelopment
today (and we'll also need to includecommon.h
everywhere, which isn't done yet).