-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Android target issues #755
Changes from all commits
2fb903d
51551d1
18ac729
9180977
bd70255
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 |
---|---|---|
|
@@ -894,7 +894,6 @@ void CFLog1(CFLogLevel lev, CFStringRef message) { | |
if (maxLength > sizeof(stack_buffer) / sizeof(stack_buffer[0])) { | ||
buffer = calloc(sizeof(char), maxLength); | ||
if (!buffer) { | ||
- __android_log_print(ANDROID_LOG_ERROR, tag, "Unable to allocate %d bytes for log message - truncating.", (int)axLength); | ||
maxLength = sizeof(stack_buffer) / sizeof(stack_buffer[0]); | ||
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. @johnno1962 @phausler for what I understand the intention in this commit was to remove this line. Is this correct? 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. tbh if the calloc fails bigger problems are going to happen down the road anyhow. My opinion is just let it fail. It is not like this is a recoverable path or a container like Data |
||
buffer = &stack_buffer[0]; | ||
buffer[maxLength-1] = '\000'; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,8 +27,10 @@ | |
#if DEPLOYMENT_TARGET_MACOSX || DEPLOYMENT_TARGET_EMBEDDED || DEPLOYMENT_TARGET_LINUX || DEPLOYMENT_TARGET_FREEBSD | ||
#include <dirent.h> | ||
#include <unistd.h> | ||
#if !TARGET_OS_ANDROID | ||
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. doesn't Android have it as 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. Correct. It was already in the same file, 10 lines before this. |
||
#include <sys/fcntl.h> | ||
#endif | ||
#endif | ||
#if DEPLOYMENT_TARGET_MACOSX || DEPLOYMENT_TARGET_EMBEDDED | ||
#include <tzfile.h> | ||
#elif DEPLOYMENT_TARGET_LINUX || DEPLOYMENT_TARGET_FREEBSD | ||
|
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.
For some reason when the
__checkint_
shim macros are defined inCFSortFunctions.c
, the prefix used is__check_
instead of__checkint_
, and then only the used references are redefined as__checkint_
. I added the 32 bits version of those references used.I can rewrite this shim macros with the prefix
__checkint_
, as for what I see here they're not used anywhere else.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.
this is just a stub until it can actually be done correctly to actually check... so looks fine to me