macho: use xmalloc
modified libpkg/binfmt_macho.c
@@ -42,6 +42,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -195,7 +196,7 @@ read_min_version(const int fd, const bool swap, const uint32_t loadcmd,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -230,7 +231,7 @@ read_path(const int fd, const bool swap, const uint32_t loadcmdsize,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -262,7 +263,7 @@ read_dylib(const int fd, const bool swap, const uint32_t loadcmdsize,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -291,7 +292,7 @@ read_build_version(const int fd, const bool swap, build_version_t **dest)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -360,7 +361,7 @@ read_macho_file(const int fd, macho_file_t **dest)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -382,7 +383,7 @@ read_macho_file(const int fd, macho_file_t **dest)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|