mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:09:42 +00:00
Camera: Fix possible ExifUtils heap corruption am: aa5673385a am: 711ebe64dd am: f4481c4d98 am: 098aae3c96 am: c108868a12 am: 1072269390
Change-Id: I4cff11618c550e0a217d3ef3ac150870bad5c7f5
This commit is contained in:
@@ -632,13 +632,13 @@ bool ExifUtilsImpl::setGpsTimestamp(const struct tm& t) {
|
||||
}
|
||||
|
||||
bool ExifUtilsImpl::setImageHeight(uint32_t length) {
|
||||
SET_LONG(EXIF_IFD_0, EXIF_TAG_IMAGE_LENGTH, length);
|
||||
SET_SHORT(EXIF_IFD_0, EXIF_TAG_IMAGE_LENGTH, length);
|
||||
SET_LONG(EXIF_IFD_EXIF, EXIF_TAG_PIXEL_Y_DIMENSION, length);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ExifUtilsImpl::setImageWidth(uint32_t width) {
|
||||
SET_LONG(EXIF_IFD_0, EXIF_TAG_IMAGE_WIDTH, width);
|
||||
SET_SHORT(EXIF_IFD_0, EXIF_TAG_IMAGE_WIDTH, width);
|
||||
SET_LONG(EXIF_IFD_EXIF, EXIF_TAG_PIXEL_X_DIMENSION, width);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user