| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Only read in 63 bytes, to make sure we preserve any trailing NULs for
end of string.
|
|
|
|
|
|
|
| |
This appears to be the source of the problem, and fixes the issue
in brief testing. It is completely baffling to me why this would only
manifest now; it's not like this code has changed since it was
added.
|
|
|
|
|
|
|
|
|
| |
For instances where the asprintf() was ignored, wrap it in
a test to check if it failed. If it failed, log a message
and abort. There may be some instances where abort may
not be what we want to do, however, we were ignoring the
return value completely so if we did get a failure, it would
just SIGSEGV. Now it will SIGABRT instead.
|
|
|
|
|
|
|
|
|
|
| |
From the NOTES section of strtol(3):
"Since strtol() can legitimately return 0, LONG_MAX, or
LONG_MIN (LLONG_MAX or LLONG_MIN for strtoll()) on both
success and failure, the calling program should set errno
to 0 before the call, and then determine if an error
occurred by checking whether errno has a non-zero value
after the call."
|
|
|
|
|
|
|
| |
Code cleanup patch. Use strtol() to convert strings to
ints, rather than atoi(). No error checking capability
with atoi(). Also add error handling to detect strtol
failures.
|
| |
|
| |
|
|
This is in isys because the EDD code needs it. Otherwise it
would just be in the loader.
|