summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Mateusz Moscicki [Tue, 1 Feb 2022 15:21:10 +0000 (16:21 +0100)]
Move SS_CalculateShaFile() to the SS_Common.c file
Change-Id: Ice1492bc24ef1c62e43991b0784018c311602def
Mateusz Moscicki [Mon, 14 Feb 2022 17:14:32 +0000 (18:14 +0100)]
ss_bsdiff: Add Brotli compression method
ss_bsdiff can produce patches compressed with both LZMA (default) and
Brotli method.
Use the '-c <lzma|brotli>' to select appropriate method.
Change-Id: I05b6c1cf22826530f823b72940af8d8ff7f602c9
Mateusz Moscicki [Fri, 11 Feb 2022 13:27:18 +0000 (14:27 +0100)]
ss_bsdiff: Refactoring
Change-Id: I8c5adaacf740f3e43057068c00a5c33f6900736f
Mateusz Moscicki [Mon, 31 Jan 2022 11:49:30 +0000 (12:49 +0100)]
Add option to skip free space checking
With DELTA_IMG_AB update type data is written directly to the target
partition, so there is no need to check for available space.
Change-Id: Id377e850281590176e831b27e24ade6a8fcc1fd5
Mateusz Moscicki [Mon, 31 Jan 2022 11:46:26 +0000 (12:46 +0100)]
Optimize SHA1 calculation during image verification
There is no need to read the entire partition into memory when
calculating the checksum. In the case of e.g. rootfs this may not event
be possible.
Change-Id: I1165024ac8795cedc8ed9904ed35bea626d6601b
Mateusz Moscicki [Thu, 9 Dec 2021 13:51:23 +0000 (14:51 +0100)]
Merge branch 'tizen' into tizen_6.5
Change-Id: I04ba5626b2a3c5543ceebdc1e0c2d39411f991ac
Mateusz Moscicki [Tue, 7 Dec 2021 11:34:02 +0000 (12:34 +0100)]
Use /run/upgrade-sysroot instead of /system
Change-Id: I81d89ccb3e688adf67936365b937679bddc58f04
Michal Bloch [Mon, 24 May 2021 19:47:34 +0000 (21:47 +0200)]
Compilation quickfix
Change-Id: Iff6d71df986d07ada33535134cf8f510d3d60ab7
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Tue, 18 May 2021 19:40:36 +0000 (21:40 +0200)]
Fix some incorrect printf specifiers
Change-Id: Iae43060cd82d73c71c36dd9580e2d1110cb916a4
(cherry picked from commit
9b46484c08c05a91997034f503d9a9d1df0a6202)
Michal Bloch [Mon, 24 May 2021 19:47:34 +0000 (21:47 +0200)]
Compilation quickfix
Change-Id: Iff6d71df986d07ada33535134cf8f510d3d60ab7
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Tue, 18 May 2021 19:40:36 +0000 (21:40 +0200)]
Fix some incorrect printf specifiers
Change-Id: Iae43060cd82d73c71c36dd9580e2d1110cb916a4
Mateusz Moscicki [Thu, 17 Dec 2020 12:58:24 +0000 (13:58 +0100)]
Fix strtoul error checking - SVACE warning
Change-Id: I954cfdce7919a452b63d1fd96ca3936536e69446
Signed-off-by: Mateusz Moscicki <m.moscicki2@partner.samsung.com>
Jeon Sang-Heon [Fri, 30 Oct 2020 11:11:13 +0000 (11:11 +0000)]
Fix typo
deafult -> default
Change-Id: Id77991ab8607a2ef6492f53229930109df42f407
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
Kichan Kwon [Thu, 23 Apr 2020 02:47:26 +0000 (11:47 +0900)]
Fix strtoul error checking
Change-Id: Iae973801894f6afe13aa4e5ae61765e19dd53a4b
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
shirsh-kumar [Thu, 16 Apr 2020 17:52:31 +0000 (23:22 +0530)]
Enable LONG file name support across all tar api's.
Add additional info in error cases.
Fix crash issue in building cfg table for LONG file names.
Version up for Library
Change-Id: Id5ee04e95909833c29527bea689f9d138fdc54ed
Signed-off-by: shirsh-kumar <shirsh.kumar@samsung.com>
Jeon Sang-Heon [Mon, 9 Mar 2020 00:56:14 +0000 (00:56 +0000)]
Revert heap to stack memory array in function
Change-Id: I6a3df69f6bfa207c2438b92884b7d5f96ef9f05d
Jeon Sang-Heon [Mon, 2 Mar 2020 08:39:48 +0000 (17:39 +0900)]
Fix coverity issue
- change large array in stack memory to heap
Change-Id: I833d1abcd81da99923ef36d336a7f487344639a2
Jeon Sang-Heon [Thu, 13 Feb 2020 04:25:24 +0000 (13:25 +0900)]
Fix coverity issue
- increase bufsize to prevent out of bound access
- check null before fwrite
Change-Id: I94571b42c10c1fe10bce9ec6532872b42a9a6196
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
Jeon Sang-Heon [Wed, 12 Feb 2020 05:40:46 +0000 (14:40 +0900)]
Fix coverity issue
- initialize file.data with NULL
- make item_data and buf to null terminated
- initialize sha1_ctx_t message buffer with NULL
Change-Id: I885f12079525f6745f1ab1a78051790c90f5007d
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
Jeon Sang-Heon [Tue, 11 Feb 2020 01:37:15 +0000 (10:37 +0900)]
Fix svace and coverity issue
- check if failed strtoul
- change atoi to strtol and check round bound with __INT_MAX__
- add null checking with strtok_r return value
Change-Id: Ie612cd49dba87785fedc895334df68e7cfc75913
Jeon Sang-Heon [Fri, 31 Jan 2020 02:37:39 +0000 (11:37 +0900)]
fix coverity issue
- modify strcmp to strncmp for non null terminated string params
- modify uncatched return code from fseek
Change-Id: Ia7f672a163dc4e7eeeb44dd0b077f73df7e97ab7
shirsh-kumar [Fri, 18 Oct 2019 09:40:21 +0000 (15:10 +0530)]
Change format of log output in case of error for SHA
Change-Id: I25cefb5a3f42743e2bfd4fffc04a35dde85e6707
Signed-off-by: shirsh-kumar <shirsh.kumar@samsung.com>
Jeon Sang-Heon [Fri, 12 Jul 2019 06:35:04 +0000 (15:35 +0900)]
Add Line feed to all log
Change-Id: Ia83dc4d267a4cfbbc058300fd9a5ca81ad0786ef
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
Sunmin Lee [Mon, 18 Mar 2019 06:31:51 +0000 (15:31 +0900)]
Revert "Apply TZ_SYS_UPGRADE path to libtota"
This reverts commit
51ac92fd026376df3e83cce93568c3f5f1f27379.
Change-Id: I147572bea17c1fd57aa97ffb7a13408f2144dd26
Sunmin Lee [Mon, 18 Feb 2019 01:52:49 +0000 (10:52 +0900)]
Narrowing permission of extracted file
Change-Id: I45fc34c8aa3c3582e4f75aaa590cf6036a1e75a9
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
shirsh-kumar [Mon, 12 Nov 2018 09:21:27 +0000 (14:51 +0530)]
Merge patches of tizen_4.0
- Fix percent issue on multiple reboot
- Limit Free size calculation to 4GB, if freesize is greater than 4GB return 4GB else max available size
- Increase supported file size (for extraction) from 256 MB to 2 GB
- Print actual and expected SHA value during verification failure of source file or image
- Fix vulnerabilities
Change-Id: Ia7f47a51f0ce431347c58b5d6a71185c5c776f3e
Signed-off-by: shirsh-kumar <shirsh.kumar@samsung.com>
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Tue, 21 Aug 2018 08:51:07 +0000 (17:51 +0900)]
Fix vulnerability
- Fix memory leaks
Change-Id: I594edfc2d46fee720819f31618a77a38d9686d0e
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Tue, 28 Aug 2018 01:03:25 +0000 (10:03 +0900)]
Replace 7zip with liblzma-tool
It is enough to use liblzma-tool instead of lib7zip
for libtota.
Change-Id: I894c07ded15b883dbcaaa8ccd30d489aa09b2b94
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Thu, 26 Jul 2018 01:53:17 +0000 (10:53 +0900)]
Apply TZ_SYS_UPGRADE path to libtota
Use a config path TZ_SYS_UPGRADE rather than hard coded path.
Change-Id: I6b9c508b09858cb44eb1c3d88e0ef3c6e646ccbb
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Thu, 26 Jul 2018 05:21:20 +0000 (14:21 +0900)]
Build source codes once as object target
The codes built as object file can be used for both libraries
(shared/static) without building for each one.
Change-Id: Ic580e691fb93a72cfc8adafcf634422bc26ef112
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Wed, 11 Jul 2018 02:23:00 +0000 (11:23 +0900)]
Comment out some log
Some log of tota is causing size issue.
Silence it to handle that.
Change-Id: I853847efbd060ab1821a28c49974cb70440d541b
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Mon, 23 Jul 2018 02:23:10 +0000 (11:23 +0900)]
Merge branch 'tizen_4.0' into tizen
Change-Id: I16ff546419b6071204fb4fbeac4c7f4faca94bfa
Sunmin Lee [Thu, 21 Jun 2018 08:36:08 +0000 (17:36 +0900)]
Fix vulnerabilities
- Handle fopen error cases
- Use strerror_r rather than sterror
Change-Id: Ia427630430061a83b7e6ad5383d5ebace1cf587e
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Wed, 20 Jun 2018 07:30:35 +0000 (16:30 +0900)]
Include copyright notice into the license texts
Change-Id: I110bdf17825284af09ad24337f0ce7bc31d200be
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
shirshkumar [Mon, 11 Jun 2018 10:43:01 +0000 (16:13 +0530)]
Logging Optimization and time profiling
The log generated contained some extra redundan information.
Those have been removed and error message has been made more informative.
Added error handling for fopen in patch reading case.
Time profiling has been enabled with better precision.
Change-Id: I4b2d595e5fd63de51a9d569ce4222a738c995f69
Signed-off-by: shirshkumar <shirsh.kumar@samsung.com>
shirsh.kumar [Thu, 24 May 2018 12:38:24 +0000 (18:08 +0530)]
Fix Svace issues
Change-Id: I5168348977f6d2771f7eba83fe89d0f910fd9ca3
Signed-off-by: shirsh.kumar <shirsh.kumar@samsung.com>
Sunmin Lee [Mon, 2 Apr 2018 08:49:27 +0000 (17:49 +0900)]
Merge branch 'tizen_4.0' into tizen
Change-Id: I6072fe180546dc5d3c7d75917238c293a8a51b7e
Sunmin Lee [Thu, 29 Mar 2018 04:27:45 +0000 (13:27 +0900)]
Patch for some initialization issue
- Initialize local variable
- Release 1.2.2
Change-Id: Idc468883b77cf319efdff7ba64aecc5bf006fe29
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Wed, 28 Mar 2018 05:42:36 +0000 (14:42 +0900)]
Fix vulnerabilities
- Replace vulnerable function with not the one
- Guarantee null termination in SS_ReadFile()
Change-Id: I32d1c68e95a488632d9084f13f45637745abc703
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Mon, 12 Mar 2018 07:20:16 +0000 (16:20 +0900)]
Merge branch 'tizen_4.0' into tizen
Change-Id: I1d046def10122b59c8e5f52483d141b050d77e84
Sunmin Lee [Thu, 8 Mar 2018 05:12:13 +0000 (14:12 +0900)]
Fix build warning
The strnlen requires specific feature test macro
Change-Id: Ifdc832ec34b71ffa34a2e22b0e542503779c4909
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
sanghyuk Ko [Thu, 7 Dec 2017 05:56:19 +0000 (14:56 +0900)]
In case of MOVES, added code to check validation.
In addition, Remove duplicated code.
Change-Id: I5162a65001dce5fbef899b5021367edb358cca84
sanghyuk Ko [Mon, 4 Dec 2017 12:53:57 +0000 (21:53 +0900)]
Tried to update the applied file when second update
Files that are applied the patch during the update are skipped during the second udpate.
Files that are deleted during the update are skipped during the second udpate.
Change-Id: Id7366ce042d361dad4913c0a31aa22fe1b440778
Sunmin Lee [Mon, 5 Mar 2018 01:13:20 +0000 (10:13 +0900)]
Merge branch 'tizen_4.0' into tizen
Change-Id: I4d082d038fab175d1a0b904773db1f509c6cf5b8
Sunmin Lee [Wed, 28 Feb 2018 06:34:46 +0000 (15:34 +0900)]
Fix vulnerability
Guarantee of null termination of string
Change-Id: I821891de257d47abf9429edc41eb0d878de36f0b
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Thu, 1 Feb 2018 06:55:12 +0000 (15:55 +0900)]
Eliminate libsmack dependency
For independence of libtota, remove libsmack dependency.
Change-Id: Ibf909e32373a8e7814e4196bfff9cffa5055eab4
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Thu, 1 Feb 2018 06:26:54 +0000 (15:26 +0900)]
Stop building diff tools by gbs
The diff tools package is not being used.
Instead of it, local_build script is available to install it directly.
Change-Id: I640e537ca4f6f27975be83b25b124a800a2dfea6
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Wed, 31 Jan 2018 01:36:04 +0000 (10:36 +0900)]
Apply PIC to libtota
Make libtota into position-independent code
Change-Id: I9a482dddd0ad39533adf8e9890c69ab8afae3450
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Wed, 20 Dec 2017 04:37:39 +0000 (13:37 +0900)]
Merge branch 'tizen' into tizen_4.0
Change-Id: I38dd714cbaa5504d3e502601010ed1159e6ed809
Kichan Kwon [Mon, 30 Oct 2017 07:28:49 +0000 (16:28 +0900)]
Remove deprecated member variable
- NOTICE : it must be merged along with the tota-ua patch
- https://review.tizen.org/gerrit/#/c/161213/
Change-Id: Ie04ad91fe88a1a703a7d135e349493352022cc74
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Fri, 3 Nov 2017 10:02:50 +0000 (19:02 +0900)]
Modify ua.h to ua_types.h for integrating header with tota-ua
- ua_types.h : structure (both packages use)
- ua.h : macro, error code (only tota-ua uses)
Change-Id: Id7fa9900236ade160c0e9a2bfbbb63f851bb55c4
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Mon, 6 Nov 2017 02:52:48 +0000 (11:52 +0900)]
Remove unused parameter
Change-Id: I23baef728f4d259a1c1df402240452efb9cc8974
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Mon, 30 Oct 2017 07:28:49 +0000 (16:28 +0900)]
Remove deprecated member variable
- NOTICE : it must be merged along with the tota-ua patch
- https://review.tizen.org/gerrit/#/c/158032/
Change-Id: Ibd14a0f92a6270f450a90eecd2c6a6e06f624baa
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Sunmin Lee [Wed, 25 Oct 2017 08:01:19 +0000 (17:01 +0900)]
Release 1.0.0
libtota for Tizen 4.0 is released
(accepted/tizen/4.0/unified/
20171017.211102)
Change-Id: Icbdcb99d674c2dd76d4cd4f661f8fb5740a21ca6
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
shirshkumar [Tue, 17 Oct 2017 12:58:56 +0000 (18:28 +0530)]
Remove experimental code from libtota
Change-Id: I1dd350dbcd2df13dd7a0109b02fcefa7d784b072
Signed-off-by: shirshkumar <shirsh.kumar@samsung.com>
Sunmin Lee [Fri, 13 Oct 2017 01:09:56 +0000 (10:09 +0900)]
Fix vulnerabilities
Change-Id: I73965454cc282be6e373805931b9d5790f74ef21
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Tue, 10 Oct 2017 02:17:22 +0000 (11:17 +0900)]
Fix svace issue
Change-Id: I91e2715d2e7c04e7141005322716e9806cea8d99
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Tue, 26 Sep 2017 02:25:40 +0000 (11:25 +0900)]
Fix svace issue
Change-Id: I3b7737174837bbc696bf4513d15367d818ad2934
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Fri, 22 Sep 2017 04:52:01 +0000 (13:52 +0900)]
Apply Tizen coding rule
Change-Id: Ic2e65905e90fa40b0dd6e637f66b46a6a41059b2
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Thu, 21 Sep 2017 06:13:45 +0000 (15:13 +0900)]
Fix strtok_r bug
In previous code the strtok and strtok_r were mixed
in order to preserve each context.
When fixed svace issues, this intention was not considered.
Fix the bug about it.
Change-Id: I76d838370fa5d3d0ebcf16b0e33e3055f5b869f8
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Tue, 19 Sep 2017 03:02:35 +0000 (12:02 +0900)]
Fix svace issues
Change-Id: Ie01674362a5dc0775e29953d146e8a90707188b9
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Mon, 11 Sep 2017 09:46:20 +0000 (18:46 +0900)]
Fix build warnings
Change-Id: I3701c06d65674f862f5171c011bc41df5d74cecc
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Mon, 24 Jul 2017 01:44:18 +0000 (10:44 +0900)]
Make SS_FSUpdate feature valid
After get the SS_FSUpdate from tota-ua,
the feature which is determined in build time doesn't work any longer.
To make it valid, use flag variable instead of preprocessor defined value.
Change-Id: I7d2531dde17798f1b0c21612c83600f5f409f22f
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Kunhoon Baik [Fri, 14 Jul 2017 09:09:24 +0000 (18:09 +0900)]
Providing local build script for server developer
Change-Id: I87422c50d3e11b9d5a065f8583b2f27b3aa50c45
Sunmin Lee [Tue, 4 Jul 2017 01:38:05 +0000 (10:38 +0900)]
Enhacement internal log system
- Considering log-size management for efficent storage usage
Change-Id: I762288c5ffb51717a3d5ee4b9b2b6d3e1aebf26f
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Wed, 24 May 2017 06:17:24 +0000 (15:17 +0900)]
Patch for x86
Resolve issues of building libtota in x86, x86_64 architecture.
Change-Id: I70331c9d9246ca72d57e6d3928bf03ee9a65ae94
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Wed, 24 May 2017 02:40:22 +0000 (11:40 +0900)]
Remove UPG directory
The UPG includes scripts which are used to make delta.
Because there is another repository "tota-upg", it doesn't
need to be duplicated at both repository.
Change-Id: I059c3f149dbb441a322c41978407a66a41cf440e
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Tue, 23 May 2017 02:56:12 +0000 (11:56 +0900)]
Integrate some common codes from tota-ua
There were duplicated codes in libtota and tota-ua.
It would be better to integrate in one place and manage them.
Change-Id: I58f813d3b6ff9b28d3f032a88cb6eef6e1688f78
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Fri, 14 Jul 2017 02:59:09 +0000 (11:59 +0900)]
Arrange code directories
Because ss_patch/ codes also used to build libtota library,
it looks better to move them into single source directory: ss_engine.
Change-Id: I9c06b69eb7e774514c4e258ca7f6f50d86ba39a7
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Fri, 19 May 2017 06:59:43 +0000 (15:59 +0900)]
Migrate SS_FSUpdate.c from tota-ua
For ease of managing, get SS_FSUpdate.c from tota-ua.
Change-Id: Id1928040f00527abee2a26bd278722d00c74d923
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Thu, 18 May 2017 07:17:42 +0000 (16:17 +0900)]
Provide shared library also
From this patch, libtota can be used as shared library.
Change-Id: I593d946cbcc37e17eb8637f6feb5a91ad4256a0e
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Thu, 13 Jul 2017 01:14:02 +0000 (10:14 +0900)]
Separate common part of bspatch to shared code
Separate same functions (apply_patch, Decode2) to common file
so it can be used as shared code.
Change-Id: Ie22f8aaf120f723925be027a8694a3f9e1f905c3
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Mon, 10 Jul 2017 06:55:45 +0000 (15:55 +0900)]
Initial codes of libtota
Change-Id: I38d3ff5839645d71cc81c77336a5d5d015d222b6
Tizen Infrastructure [Mon, 3 Jul 2017 03:12:29 +0000 (03:12 +0000)]
Initial empty repository