Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

system-media: Commit

system/media


Commit MetaInfo

Revisiondcace892979fc35748417b33f51cf84cec6288c4 (tree)
Time2018-01-04 07:35:17
Authorandroid-build-team Robot <android-build-team-robot@goog...>
Commiterandroid-build-team Robot

Log Message

Snap for 4485699 from bb1cab7a642ce15c0c69b6c987177204bc81fbcb to oc-m2-release

Change-Id: I65c837f1b8ee57fabde5460478811a7f467175fa

Change Summary

Incremental Difference

--- a/camera/src/camera_metadata.c
+++ b/camera/src/camera_metadata.c
@@ -228,6 +228,12 @@ camera_metadata_t *allocate_copy_camera_metadata_checked(
228228 return NULL;
229229 }
230230
231+ if (src_size < sizeof(camera_metadata_t)) {
232+ ALOGE("%s: Source size too small!", __FUNCTION__);
233+ android_errorWriteLog(0x534e4554, "67782345");
234+ return NULL;
235+ }
236+
231237 void *buffer = malloc(src_size);
232238 memcpy(buffer, src, src_size);
233239
Show on old repository browser