aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-06-04Snap for 6557338 from 754e54a5b21a02af3a6f786ff7275bf19360d5e2 to rvc-releaseandroid-vts-11.0_r9android-vts-11.0_r8android-vts-11.0_r7android-vts-11.0_r6android-vts-11.0_r5android-vts-11.0_r4android-vts-11.0_r3android-vts-11.0_r2android-vts-11.0_r16android-vts-11.0_r15android-vts-11.0_r14android-vts-11.0_r13android-vts-11.0_r12android-vts-11.0_r11android-vts-11.0_r10android-vts-11.0_r1android-security-11.0.0_r1android-r-beta-3android-r-beta-2android-platform-11.0.0_r2android-platform-11.0.0_r1android-cts-11.0_r9android-cts-11.0_r8android-cts-11.0_r7android-cts-11.0_r6android-cts-11.0_r5android-cts-11.0_r4android-cts-11.0_r3android-cts-11.0_r2android-cts-11.0_r16android-cts-11.0_r15android-cts-11.0_r14android-cts-11.0_r13android-cts-11.0_r12android-cts-11.0_r11android-cts-11.0_r10android-cts-11.0_r1android-11.0.0_r6android-11.0.0_r5android-11.0.0_r4android-11.0.0_r3android-11.0.0_r25android-11.0.0_r2android-11.0.0_r17android-11.0.0_r1r-beta-2android11-tests-releaseandroid11-s1-releaseandroid11-releaseandroid-build-team Robot
Change-Id: Icae4dad43767669522d97cbf780c4de702266b95
2020-06-03Merge "ANDROID: Fix heap overflow in sgdisk" into qt-dev am: d415e355de am: ↵android11-devTreeHugger Robot
cc737d2b64 Original change: https://googleplex-android-review.googlesource.com/c/platform/external/gptfdisk/+/11603732 Change-Id: I9dc7129bb58a9f7789a0bb224daa4780a80d5e6d
2020-06-03Merge "ANDROID: Fix heap overflow in sgdisk" into qt-dev am: d415e355deTreeHugger Robot
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/gptfdisk/+/11603732 Change-Id: I833de27622d6b0e1a5d3a9bf30fae6771462eee3
2020-06-03Merge "ANDROID: Fix heap overflow in sgdisk" into qt-qpr1-dev am: d79a6bc4d6TreeHugger Robot
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/gptfdisk/+/11603731 Change-Id: I243251b78b4a22544de86641a1bc2d8c09bb2ed9
2020-06-03Merge "ANDROID: Fix heap overflow in sgdisk" into qt-qpr1-devTreeHugger Robot
2020-06-03Merge "ANDROID: Fix heap overflow in sgdisk" into qt-devTreeHugger Robot
2020-06-03Snap for 6553159 from d1cacb379c3b403ffea87bf74b9fe0467a3a1420 to rvc-releaseandroid-build-team Robot
Change-Id: Icbbae670dc6426029076e9c225f715eacffbe2c1
2020-06-02ANDROID: Fix heap overflow in sgdisk am: 7e46be3a55 am: b7c51353e0 am: ↵Alistair Delva
586c4df257 am: 99bbb78a37 am: 4841ffd80c am: bab8403b53 Original change: undetermined Change-Id: I06cc9b52ea6ad14c1f00280a8ef60cf3a50c6638
2020-06-02ANDROID: Fix heap overflow in sgdisk am: 7e46be3a55 am: b7c51353e0 am: ↵Alistair Delva
586c4df257 am: 99bbb78a37 am: 4841ffd80c Original change: undetermined Change-Id: I105de040d119c061b42e7a23bffa230d28371443
2020-06-02ANDROID: Fix heap overflow in sgdisk am: 7e46be3a55 am: b7c51353e0 am: ↵Alistair Delva
586c4df257 am: 99bbb78a37 Original change: undetermined Change-Id: I187989b4e2330a91c3fa63d3eaa1e62cd41c6b8c
2020-06-02ANDROID: Fix heap overflow in sgdisk am: 7e46be3a55 am: b7c51353e0 am: ↵Alistair Delva
586c4df257 Original change: undetermined Change-Id: Idf6e97a5776f61f9e7fe585364862b1d66bc75e3
2020-06-02ANDROID: Fix heap overflow in sgdisk am: 48d79bedaf am: 583ec29626 am: ↵Alistair Delva
256b5261a4 am: 5d9a2fdafe Original change: undetermined Change-Id: I0c8b88aed9f28b6d153506312e4c7b954d63c3ab
2020-06-02ANDROID: Fix heap overflow in sgdisk am: 313410dbea am: 9e34c1db11 am: ↵Alistair Delva
dac372ca47 Original change: undetermined Change-Id: Ie121dea00a83ccbc960840645574a2c61cbb46bb
2020-06-02ANDROID: Fix heap overflow in sgdisk am: 48d79bedaf am: 583ec29626 am: ↵Alistair Delva
256b5261a4 Original change: undetermined Change-Id: I471e51aba1d9f14292db0648a918cc1d062853d0
2020-06-02ANDROID: Fix heap overflow in sgdisk am: 313410dbea am: 9e34c1db11Alistair Delva
Original change: undetermined Change-Id: I658cbb56894414db79344d5a45ec26a3bcd04731
2020-06-02ANDROID: Fix heap overflow in sgdisk am: 7e46be3a55 am: b7c51353e0Alistair Delva
Original change: undetermined Change-Id: Ie7e649e1bd734af511e1efbd0af265a61a1057ee
2020-06-02ANDROID: Fix heap overflow in sgdisk am: 48d79bedaf am: 583ec29626Alistair Delva
Original change: undetermined Change-Id: I9052f2349633cd5ceb1d35768a9cb5b5523b32d1
2020-06-02ANDROID: Fix heap overflow in sgdisk am: 313410dbeaAlistair Delva
Original change: undetermined Change-Id: Ide8ae337c93d3fb20d7b6333b72cf4c9d86d6710
2020-06-02ANDROID: Fix heap overflow in sgdisk am: 7e46be3a55Alistair Delva
Original change: undetermined Change-Id: I71cd4208bd4d233053255e0c893a1c31bcbc2153
2020-06-02ANDROID: Fix heap overflow in sgdisk am: 48d79bedafAlistair Delva
Original change: undetermined Change-Id: I0c7dc499ec9b1df80708f1ed153e90d33ae67080
2020-05-26ANDROID: Fix heap overflow in sgdiskAlistair Delva
If a maliciously formatted USB or SD Card device was inserted into an Android device, the sgdisk tool could crash. This crash occurs because sgdisk does not validate that the number of GPT partition entries specified on disk matches the internal maximum permitted by the GPT spec. Fix this by sanity checking the on disk parameter before using it. After the fix, sgdisk detects the corrupt GPT during the formatting procedure, but it is harmlessly zapped and replaced with a new one. Test: before fix, saw sgdisk crash while the device was booting up Test: after fix, no more sgdisk crashes Test: went through "portable storage" and "adopted storage" wizard flows using the cuttlefish virtual device and a malicious partition table flashed to the device Bug: 152874864 Change-Id: Iec64bc2ef5c31ad985126f9cf3b755eec7de3abe
2020-05-26ANDROID: Fix heap overflow in sgdiskAlistair Delva
If a maliciously formatted USB or SD Card device was inserted into an Android device, the sgdisk tool could crash. This crash occurs because sgdisk does not validate that the number of GPT partition entries specified on disk matches the internal maximum permitted by the GPT spec. Fix this by sanity checking the on disk parameter before using it. After the fix, sgdisk detects the corrupt GPT during the formatting procedure, but it is harmlessly zapped and replaced with a new one. Test: before fix, saw sgdisk crash while the device was booting up Test: after fix, no more sgdisk crashes Test: went through "portable storage" and "adopted storage" wizard flows using the cuttlefish virtual device and a malicious partition table flashed to the device Bug: 152874864 Change-Id: Iec64bc2ef5c31ad985126f9cf3b755eec7de3abe
2020-05-26ANDROID: Fix heap overflow in sgdiskAlistair Delva
If a maliciously formatted USB or SD Card device was inserted into an Android device, the sgdisk tool could crash. This crash occurs because sgdisk does not validate that the number of GPT partition entries specified on disk matches the internal maximum permitted by the GPT spec. Fix this by sanity checking the on disk parameter before using it. After the fix, sgdisk detects the corrupt GPT during the formatting procedure, but it is harmlessly zapped and replaced with a new one. Test: before fix, saw sgdisk crash while the device was booting up Test: after fix, no more sgdisk crashes Test: went through "portable storage" and "adopted storage" wizard flows using the cuttlefish virtual device and a malicious partition table flashed to the device Bug: 152874864 Change-Id: Iec64bc2ef5c31ad985126f9cf3b755eec7de3abe
2020-05-26ANDROID: Fix heap overflow in sgdiskAlistair Delva
If a maliciously formatted USB or SD Card device was inserted into an Android device, the sgdisk tool could crash. This crash occurs because sgdisk does not validate that the number of GPT partition entries specified on disk matches the internal maximum permitted by the GPT spec. Fix this by sanity checking the on disk parameter before using it. After the fix, sgdisk detects the corrupt GPT during the formatting procedure, but it is harmlessly zapped and replaced with a new one. Test: before fix, saw sgdisk crash while the device was booting up Test: after fix, no more sgdisk crashes Test: went through "portable storage" and "adopted storage" wizard flows using the cuttlefish virtual device and a malicious partition table flashed to the device Bug: 152874864 Change-Id: Iec64bc2ef5c31ad985126f9cf3b755eec7de3abe
2020-05-26ANDROID: Fix heap overflow in sgdiskAlistair Delva
If a maliciously formatted USB or SD Card device was inserted into an Android device, the sgdisk tool could crash. This crash occurs because sgdisk does not validate that the number of GPT partition entries specified on disk matches the internal maximum permitted by the GPT spec. Fix this by sanity checking the on disk parameter before using it. After the fix, sgdisk detects the corrupt GPT during the formatting procedure, but it is harmlessly zapped and replaced with a new one. Test: before fix, saw sgdisk crash while the device was booting up Test: after fix, no more sgdisk crashes Test: went through "portable storage" and "adopted storage" wizard flows using the cuttlefish virtual device and a malicious partition table flashed to the device Bug: 152874864 Change-Id: Iec64bc2ef5c31ad985126f9cf3b755eec7de3abe
2020-05-21Snap for 6516174 from caedc3271de61492a3d9aa0c07148d5205b0e872 to rvc-releaseandroid-build-team Robot
Change-Id: I0c874fd90f6520b8eba64d98e48d1b04c6549893
2020-05-20ANDROID: Fix heap overflow in sgdiskAlistair Delva
If a maliciously formatted USB or SD Card device was inserted into an Android device, the sgdisk tool could crash. This crash occurs because sgdisk does not validate that the number of GPT partition entries specified on disk matches the internal maximum permitted by the GPT spec. Fix this by sanity checking the on disk parameter before using it. After the fix, sgdisk detects the corrupt GPT during the formatting procedure, but it is harmlessly zapped and replaced with a new one. Test: before fix, saw sgdisk crash while the device was booting up Test: after fix, no more sgdisk crashes Test: went through "portable storage" and "adopted storage" wizard flows using the cuttlefish virtual device and a malicious partition table flashed to the device Bug: 152874864 Change-Id: Iec64bc2ef5c31ad985126f9cf3b755eec7de3abe
2020-02-11Snap for 6197114 from ffeb84522c476f8d2dd4f40f3119ec36e525b205 to rvc-releaseandroid-r-preview-4android-r-preview-3android-r-preview-2android-build-team Robot
Change-Id: I2facffa7c316def4c61a4d9d9ef34446f091cbd1
2020-02-11Upgrade gptfdisk to d292ff36a3b350115835c62462911c3d8721704f am: c83113b1d8 ↵Automerger Merge Worker
am: dc0e6b8dcf am: 0f57984be8 Change-Id: I31310e3dcac7bddb422bf6a2116d7da46e52e3c3
2020-02-11Upgrade gptfdisk to d292ff36a3b350115835c62462911c3d8721704f am: c83113b1d8 ↵Automerger Merge Worker
am: dc0e6b8dcf Change-Id: I0fd23cdea1df8310c0fefaffc2025a392d442cac
2020-02-11Upgrade gptfdisk to d292ff36a3b350115835c62462911c3d8721704f am: c83113b1d8Automerger Merge Worker
Change-Id: I3cc47d2ae6c5f6afac8c7226bb3c99b7da0b9034
2020-02-10Upgrade gptfdisk to d292ff36a3b350115835c62462911c3d8721704fHaibo Huang
Change 2c2deeb032f6c158cf4f782e1765a4a21af88cb3 is reverted in this merge. Because it conflicts with upstream option "move-main-table". Change-Id: I2c1cb67a95139879333a430eb0e8b34f6b396c32
2020-02-10Merge /u/johndemolition/gptfdisk/ branch u into masterRoderick W. Smith
https://sourceforge.net/p/gptfdisk/code/merge-requests/17/
2020-02-10Merge /u/geoffwilliams/gptfdisk/ branch hybrid_part_order into masterRoderick W. Smith
https://sourceforge.net/p/gptfdisk/code/merge-requests/16/
2020-02-10Merge /u/ffontaine35/gptfdisk/ branch master into masterRoderick W. Smith
https://sourceforge.net/p/gptfdisk/code/merge-requests/14/
2020-02-10Add more Linux partition type codesnl6720
See https://github.com/systemd/systemd/pull/14390 .
2020-02-09Change number of columns in type code output from 3 to 2.Rod Smith
2019-12-13Snap for 6069976 from 0fdc3f3345fca522bbbd9460baa0cb616b643652 to rvc-releaseandroid-r-preview-1android-build-team Robot
Change-Id: I7b339ae380ef5cf089f30e57aea3b432a9c36cbc
2019-12-12Remove ghartman@ from OWNERS am: 0da7f5dd73 am: ab6dadc601 am: 86c40cb45aAutomerger Merge Worker
Change-Id: I2eda3d550eb34134b7140489ab9b24759d279e34
2019-12-12Remove ghartman@ from OWNERS am: 0da7f5dd73 am: ab6dadc601Automerger Merge Worker
Change-Id: I3fd2a2d76770c99af137c638c5d871240f48c609
2019-12-12Remove ghartman@ from OWNERSGreg Hartman
am: 0da7f5dd73 Change-Id: I2a98d83c48192ba6f9fc4a23e18a4693b72311f5
2019-12-10Remove ghartman@ from OWNERSGreg Hartman
Test: gerrit Change-Id: I68bfa1493c42de5c27cca5ed8f9a6e28668346e3
2019-10-07support: flush cout in ReadStringRosen Penev
uClibc++ does not implicitly do this. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-10-07support: flush cout in GetNumberRosen Penev
uClibc++ does not implicitly do this before getline. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-10-07support: Flush cout in GetYNRosen Penev
uClibc++ does not implicitly flush cout before getline. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-10-07gptcurses: Add missing headerRosen Penev
Needed with uClibc++ as it doesn't implicitly include it. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-09-22Support placing GPT last when for hybrid MBRGeoff Williams
Some hardware (notably Raspberry PI) requires a small FAT partition be listed as the first MBR partition to boot. At the moment hybrid MBR disks allowing this can only be made using the interactive `gdisk` program by choosing `h` from the recovery menu and answering `N` when asked: ``` Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? ``` This commit brings feature parity to `sgdisk` by changing `-h` to support an optional final partition `EE` indicating that the GPT partition should be listed last in the MBR instead of first. **Examples**: GPT first (current behaviour) ```shell sgdisk -h 1:2 sdcard.img ``` GPT last ```shell sgdisk -h 1:2:EE sdcard.img ```
2019-04-19Add $(LDLIBS) support to enable clean static builds (for libintl).Fabrice Fontaine
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> [Retrieved from: https://git.buildroot.net/buildroot/tree/package/gptfdisk/0001-ldlibs.patch] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2019-03-16Improve man pagesnl6720
Fix links to other manuals. Change one MB to MiB. Add space between number and unit.
2019-03-15Fixed typo in sgdisk man page.Rod Smith