#1000490 parted: heap-overflow after getline

Package:
parted
Source:
parted
Description:
disk partition manipulator
Submitter:
wangyangbo
Date:
2021-11-24 03:30:04 UTC
Severity:
normal
#1000490#5
Date:
2021-11-24 03:18:05 UTC
From:
To:
Dear Maintainer,

echo 'int main(){
  ped_malloc(10);
  return 0;
}' >a.c
gcc a.c -lparted -fsanitize=address
./a.out running by no-root,

Will see heap-buffer-overflow from ped_disk_gpt_init.
I have fixed it, will submit after this report.