summaryrefslogtreecommitdiff
path: root/src/ptp-pack.c
Commit message (Collapse)AuthorAgeFilesLines
* ptp-pack: fix ucs2str overflowQiuhao Li2022-11-291-1/+3
| | | | | | | https://github.com/libmtp/libmtp/pull/134 https://github.com/libmtp/libmtp/commit/2ada8d587bbfb077f3b7155ebd0dfa8db65e935d#r91371167 Signed-off-by: Qiuhao Li <Qiuhao.Li@outlook.com>
* Revert "ptp_pack_string: check string length for no iconv situation"Marcus Meissner2022-11-291-3/+3
| | | | | | | was not correct, see discussion in https://github.com/libmtp/libmtp/commit/2ada8d587bbfb077f3b7155ebd0dfa8db65e935d This reverts commit 45b29802d7473a969cbc268a4c64e0797c7911c2.
* ptp_pack_string: check string length for no iconv situationQiuhao Li2022-11-221-3/+3
| | | | | | | When HAVE_ICONV or HAVE_LANGINFO_H is not defined, we may have stack-over-flow issue when copy string to ucs2str. Signed-off-by: Qiuhao Li <Qiuhao.Li@outlook.com>
* Fix array properties retrievalAlexandr Shevchenko2022-01-291-1/+1
|
* synced from libgphoto2Marcus Meissner2021-01-011-2/+61
|
* support more MTP ObjectPropDesc typesMarcus Meissner2021-01-011-1/+24
|
* revert back to 0 byte strings turning into "" , fixes ↵Marcus Meissner2020-11-181-1/+5
| | | | https://github.com/libmtp/libmtp/issues/67
* merge from libgphoto2.Marcus Meissner2020-11-161-62/+100
|
* handle the unpacking of 16bit entitiesMarcus Meissner2019-02-031-10/+18
| | | | merge from libgphoto2
* fixed off by 1 in ptp_unpack_string, exposed by more strict storage unpackingMarcus Meissner2019-01-161-3/+7
|
* change api of ptp_unpack_string to support also unpacking "PTP" empty stringsMarcus Meissner2019-01-021-32/+61
|
* fixed a warning for overflowMarcus Meissner2018-12-281-1/+4
|
* merge from libgphoto2Marcus Meissner2018-12-011-2/+3
|
* ptp-pack: fix some format issuesReverend Homer2018-11-301-7/+7
| | | | | | | | | | | | | | | | | | | | [src/ptp-pack.c:2699]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [src/ptp-pack.c:2700]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [src/ptp-pack.c:2701]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [src/ptp-pack.c:2702]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [src/ptp-pack.c:2703]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [src/ptp-pack.c:2704]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [src/ptp-pack.c:2705]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [src/ptp-pack.c:2706]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [src/ptp-pack.c:2707]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [src/ptp-pack.c:2708]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [src/ptp-pack.c:2709]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [src/ptp-pack.c:2710]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [src/ptp-pack.c:2711]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [src/ptp-pack.c:2712]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [src/ptp-pack.c:2713]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [src/ptp-pack.c:2714]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [src/ptp-pack.c:2715]: (warning) %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'.
* merge from libgphoto2, no relevant changesMarcus Meissner2018-10-071-5/+14
|
* merge from libgphoto2.Marcus Meissner2018-06-141-25/+219
| | | | | Relevant for libmtp: More bounds checking within the ptp data decoders.
* merge ptp files from libgphoto2:Marcus Meissner2017-07-271-4/+21
| | | | - various AFL fuzzer fixes in MTP OPL, Canon and other code
* imported ptp* from libgphoto2Marcus Meissner2017-03-161-67/+245
| | | | lots of buffer overread checks
* merge accumulated ptp lowlevel changes from libgphoto2.Marcus Meissner2016-02-211-74/+225
| | | | | | | | main interesting thing: - size / overflow checking for various usb data unpacker functions - small api changes adapted callers in libusb*glue.c and libmtp.c
* Sync in upstream gPhoto2 ptp2.Linus Walleij2014-06-021-55/+402
| | | | Signed-off-by: Linus Walleij <triad@df.lth.se>
* sync to very latest ptp2Linus Walleij2013-11-041-21/+28
| | | | Signed-off-by: Linus Walleij <triad@df.lth.se>
* sync to upstream PTP2Linus Walleij2013-11-041-2/+59
| | | | Signed-off-by: Linus Walleij <triad@df.lth.se>
* Properly update to the latest gphoto2 code, and update theLinus Walleij2013-03-051-5/+30
| | | | | | script grabbing out the source code... Signed-off-by: Linus Walleij <triad@df.lth.se>
* Sync in upstream libgphoto2.Marcus Meissner2012-04-101-13/+77
| | | | | Marcus Meissner <marcus@jet.franken.de> Signed-off-by: Linus Walleij <triad@df.lth.se>
* Sync in upstream libptp2 updates, including some MTPZ andLinus Walleij2012-03-251-3/+88
| | | | | | bug flag updates. Signed-off-by: Linus Walleij <triad@df.lth.se>
* Sync ptp-pack.c from upstream to fix a bug.Linus Walleij2011-12-201-3/+3
| | | | Signed-off-by: Linus Walleij <triad@df.lth.se>
* Sync core PTP files from gphoto2Linus Walleij2011-11-141-4/+4
| | | | Signed-off-by: Linus Walleij <triad@df.lth.se>
* Sync to upstream libgphoto2, including a time fix for daylightLinus Walleij2011-04-191-33/+34
| | | | | | savings. Signed-off-by: Linus Walleij <triad@df.lth.se>
* Sync in changes from libgphoto2 in response to SolarisLinus Walleij2011-02-101-3/+1
| | | | porting issues.
* Update PTP code to match upstreamLinus Walleij2010-12-071-12/+33
|
* Upstream PTP syncLinus Walleij2010-04-041-22/+38
|
* Synced some upstream libgphoto2 codeLinus Walleij2010-01-301-3/+3
|
* Update to upstreamLinus Walleij2009-07-231-41/+213
|
* Marcus' core updates.Linus Walleij2009-06-141-23/+79
|
* Include some patch from MarcusLinus Walleij2009-05-091-13/+30
|
* Upstream sync to libgphoto2Linus Walleij2009-05-061-36/+159
|
* New upstream PTP filesLinus Walleij2008-11-091-1/+4
|
* Sync upstream and adjust Richards bug fix.Linus Walleij2008-11-011-71/+75
|
* Check to see if we run out of OPL dataRichard Low2008-11-011-0/+10
|
* Move stuff around, sync upstream.Linus Walleij2008-08-161-2/+4
|
* Sync to upstream.Linus Walleij2008-05-281-1/+3
|
* Marcus' fab qsort() arrays!Linus Walleij2007-09-121-47/+24
|
* Sort retrieved object proplists.Linus Walleij2007-08-311-7/+34
|
* packing of NULL stringsRichard Low2007-08-161-2/+6
|
* Retire old 64bit hackish bit twiddleLinus Walleij2007-08-031-13/+0
|
* Fix up array packingRichard Low2007-07-301-8/+8
|
* Try to get complete 64bit supportLinus Walleij2007-07-301-8/+58
|
* Some 64 bit filesize supportRichard Low2007-07-291-11/+8
|
* Sync upstreamLinus Walleij2007-07-181-0/+8
|
* Reset command etcLinus Walleij2007-07-171-8/+8
|