Includes to pres-checker a checksum of a image that makes Libreoffice crash
This commit is contained in:
parent
77e072ed60
commit
382c43e0bc
@ -99,9 +99,9 @@ public class Main {
|
||||
private final class TinyTileBackgroundPredicate
|
||||
implements Predicate<XSLFPictureData> {
|
||||
public boolean evaluate(XSLFPictureData img) {
|
||||
return img.getContentType() != null
|
||||
&& img.getContentType().equals("image/jpeg")
|
||||
&& LittleEndian.getLong(img.getChecksum()) == 4114937224L;
|
||||
return img.getContentType() != null
|
||||
&& ((img.getContentType().equals("image/jpeg") && LittleEndian.getLong(img.getChecksum()) == 4114937224L) ||
|
||||
(img.getContentType().equals("image/png") && LittleEndian.getLong(img.getChecksum()) == 3207965638L));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user