[libbluray-devel] [PATCH 4/4] Replace missed realloc with _safe_realloc.
Andreas Zelend
ace at kodi.tv
Tue May 30 14:00:26 CEST 2017
From: ace20022 <ace20022 at ymail.com>
---
src/ecma167.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ecma167.c b/src/ecma167.c
index 8ef6c1b..88efe0a 100644
--- a/src/ecma167.c
+++ b/src/ecma167.c
@@ -341,7 +341,7 @@ int decode_allocation_extent(struct file_entry **p_fe, const uint8_t *p, size_t
return 0;
}
- fe = (struct file_entry *)realloc(fe, sizeof(struct file_entry) + sizeof(struct long_ad) * (fe->num_ad + num_ad - 1));
+ fe = (struct file_entry *)_safe_realloc(fe, sizeof(struct file_entry) + sizeof(struct long_ad) * (fe->num_ad + num_ad - 1));
if (!fe) {
return -1;
}
--
2.11.0.windows.1
More information about the libbluray-devel
mailing list