Fix 'start_pos' > 'end_pos' issue 21/310721/3 accepted/tizen/unified/20240508.124556 accepted/tizen/unified/20240508.150746 accepted/tizen/unified/x/20240509.044722
authorMinje Ahn <minje.ahn@samsung.com>
Tue, 7 May 2024 08:07:59 +0000 (17:07 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Wed, 8 May 2024 02:20:02 +0000 (11:20 +0900)
commit085a554855b0a560a63f3dfef5f545efb1769f1a
treef4919e723fff7ef1289d6834da57b31a5ed49ea7
parent273dd994e39bb9e6b4a88ca743d7b8f60db51010
Fix 'start_pos' > 'end_pos' issue

[cause]
The following string can be read from a PDF file with consecutive xmp metadata blocks:
  ... </x:xmpmeta><x:xmpmeta ...
In this case, 'end_pos' is less than 'start_pos'.

[solve]
Anything before 'start_pos' in the buffer is ignored.

Change-Id: I28d2669c1ecaf755501da64b903a23478c723ef2
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
packaging/libmedia-service.spec
src/media-svc-util.c