Projects
Eulaceura:Mainline
lastpass-cli
_service:obs_scm:lastpass-cli-1.3.1-remove_real...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:lastpass-cli-1.3.1-remove_reallocarray.patch of Package lastpass-cli
diff -up lastpass-cli-1.3.1/util.c.remove_reallocarray lastpass-cli-1.3.1/util.c --- lastpass-cli-1.3.1/util.c.remove_reallocarray 2018-05-17 11:42:27.000000000 +0200 +++ lastpass-cli-1.3.1/util.c 2018-07-03 20:14:34.347554160 +0200 @@ -196,19 +196,6 @@ void *xrealloc(void *ptr, size_t size) return ret; die_errno("realloc(%p, %zu)", ptr, size); } -void *reallocarray(void *optr, size_t nmemb, size_t size) -{ - if (!size || !nmemb) { - errno = ENOMEM; - return NULL; - } - if ((nmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) && - nmemb > 0 && SIZE_MAX / nmemb < size) { - errno = ENOMEM; - return NULL; - } - return realloc(optr, size * nmemb); -} void *xreallocarray(void *ptr, size_t nmemb, size_t size) { void *ret = reallocarray(ptr, nmemb, size); diff -up lastpass-cli-1.3.1/util.h.remove_reallocarray lastpass-cli-1.3.1/util.h --- lastpass-cli-1.3.1/util.h.remove_reallocarray 2018-05-17 11:42:27.000000000 +0200 +++ lastpass-cli-1.3.1/util.h 2018-07-03 20:14:13.644661155 +0200 @@ -64,7 +64,6 @@ bool ask_yes_no(bool default_yes, const void *xmalloc(size_t size); void *xcalloc(size_t nmemb, size_t size); void *xrealloc(void *ptr, size_t size); -void *reallocarray(void *ptr, size_t nmemb, size_t size); void *xreallocarray(void *ptr, size_t nmemb, size_t size); void *xstrdup(const char *str);
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2