nlitsme / extfstools

Tools for extracting files from ext2,3,4 filesystem images
MIT License
121 stars 39 forks source link

segfault on Pixel 3a Android 9 image #14

Open pandasauce opened 3 years ago

pandasauce commented 3 years ago

Firmware: https://dl.google.com/dl/android/aosp/sargo-pq3b.190801.002-factory-56817dc2.zip

Running ext2rd system.img system/build.prop:build.prop causes a segfault:

➜  sargo-pq3b.190801.002  ext2rd system.img system/build.prop:build.prop
sparse: v00000001 h:001c c:000c b:00001000 nblk:000c2c00 ncnk:00000017,  cksum:00000000
end of sparse: c2c00000
 23 entries in sparse map
first: 0-8002000: copy from 28
last:  c2bff000-c2c00000: copy from 8e78c130
ehmagic=6818 -  18 68 0c 38 f7 f2 a8 e0 20 46 ea f2
[1]    145861 segmentation fault (core dumped)  ext2rd system.img system/build.prop:build.prop
nlitsme commented 3 years ago

I still have to implement support for ext4. I think this is why this fails.

enovella commented 2 years ago

Same problem

  inflating: /build/host/../factory/system.img  
+ /build/host/../host/ext2rd /build/host/../factory/system.img system/build.prop:/build/host/../factory/taimen.9-build.prop
sparse: v00000001 h:001c c:000c b:00001000 nblk:000a0000 ncnk:00000017,  cksum:00000000
end of sparse: a0000000
 23 entries in sparse map
first: 0-8002000: copy from 28
last:  9ffff000-a0000000: copy from 8b2bc130
EXCEPTION: blocknr too large