Skip to content

Commit 6379734

Browse files
authored
Merge pull request #403 from cantabular/poppler-25.09.1
Update to Poppler 25.09.1
2 parents 1f146b0 + 48f5782 commit 6379734

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

src/DumpAsTextDev.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,9 @@ class DumpAsTextDev : public OutputDev {
314314
return OutputDev::eoFill(A);
315315
}
316316

317-
bool tilingPatternFill(GfxState *A, Gfx *B, Catalog *C, GfxTilingPattern *D, const double *E,
317+
bool tilingPatternFill(GfxState *A, Gfx *B, Catalog *C, GfxTilingPattern *D, const std::array<double, 6> &E,
318318
int F, int G, int H, int I, double J, double K) {
319+
319320
printf("tilingPatternFill\n");
320321
return OutputDev::tilingPatternFill(A, B, C, D, E, F, G, H, I, J, K);
321322
}
@@ -547,7 +548,7 @@ class DumpAsTextDev : public OutputDev {
547548
return OutputDev::checkTransparencyGroup(A, B);
548549
}
549550

550-
void beginTransparencyGroup(GfxState *A, double *B, GfxColorSpace *C, bool D,
551+
void beginTransparencyGroup(GfxState *A, const std::array<double, 4> &B, GfxColorSpace *C, bool D,
551552
bool E, bool F) {
552553
printf("beginTransparencyGroup\n");
553554
return OutputDev::beginTransparencyGroup(A, B, C, D, E, F);
@@ -558,12 +559,12 @@ class DumpAsTextDev : public OutputDev {
558559
return OutputDev::endTransparencyGroup(A);
559560
}
560561

561-
void paintTransparencyGroup(GfxState *A, double *B) {
562+
void paintTransparencyGroup(GfxState *A, const std::array<double, 4> &B) {
562563
printf("paintTransparencyGroup\n");
563564
return OutputDev::paintTransparencyGroup(A, B);
564565
}
565566

566-
void setSoftMask(GfxState *A, double *B, bool C, Function *D, GfxColor *E) {
567+
void setSoftMask(GfxState *A, const std::array<double, 4> &B, bool C, Function *D, GfxColor *E) {
567568
printf("setSoftMask\n");
568569
return OutputDev::setSoftMask(A, B, C, D, E);
569570
}

src/main.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ static int install_syscall_filter(void) {
8585
ALLOW_SYSCALL(brk),
8686
ALLOW_SYSCALL(exit),
8787
ALLOW_SYSCALL(exit_group),
88+
ALLOW_SYSCALL(openat),
8889
KILL_PROCESS,
8990
// clang-format on
9091
};
@@ -311,7 +312,7 @@ void TextPageDecRef(TextPage *text_page) { text_page->decRefCnt(); }
311312
void render_annotations(std::unique_ptr<Gfx> &gfx, Annots *annots) {
312313
gfx->saveState();
313314

314-
for (Annot *annot : annots->getAnnots()) {
315+
for (const std::shared_ptr<Annot> &annot : annots->getAnnots()) {
315316
annot->draw(gfx.get(), false);
316317
}
317318

@@ -508,7 +509,7 @@ BaseStream *open_file(const std::string filename) {
508509
exit(5);
509510
}
510511
Object obj;
511-
return new FileStream(file.release(), 0, false, file->size(), Object(objNull));
512+
return new FileStream(file.release(), 0, false, file->size(), Object::null());
512513
}
513514

514515
std::string parse_page_range(std::string value, Options *options) {

0 commit comments

Comments
 (0)