[PORT FROM MAIN]framwork: MediaScan can't work again after adb push some speical file to phone
from my test it happens in the AsfExtractor.cpp.
It will in initialize() => for() forever.
Because the objectSize =0
then offset will be == fix value,
then readAt() == 24,
In common, offset + objectSize will reach another header.
But this bad file(may be made by somebody) is different, it reachs a bad another header.
So it can happen this issue.
If you want to know the bad file name,you can refer patch:(80715) and (79686 Patch Set 9).
Signed-off-by: Kun Jiang <firstname.lastname@example.org>
Reviewed-by: Ding, Haitao <email@example.com>
Tested-by: Ding, Haitao <firstname.lastname@example.org>
Reviewed-by: cactus <email@example.com>
Tested-by: cactus <firstname.lastname@example.org>
1 file changed