diff options
author | rbuj <[email protected]> | 2020-01-20 16:00:37 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-01-31 18:52:19 +0100 |
commit | a70e19a51423b855b9da8d7f9ed40d396a534c67 (patch) | |
tree | 1fe5414f810a3fadd3fbd88673987cad60d62aac /backend/pdf/ev-poppler.cc | |
parent | e388b7032dda81917b05583c306a4b9690dcaa46 (diff) | |
download | atril-a70e19a51423b855b9da8d7f9ed40d396a534c67.tar.bz2 atril-a70e19a51423b855b9da8d7f9ed40d396a534c67.tar.xz |
Fix year 2038 issue with signed 32-bit integers
GTime is defined to always be a signed 32-bit integer, it will
overflow in the year 2038.
Diffstat (limited to 'backend/pdf/ev-poppler.cc')
-rw-r--r-- | backend/pdf/ev-poppler.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc index e21bd768..be16e88f 100644 --- a/backend/pdf/ev-poppler.cc +++ b/backend/pdf/ev-poppler.cc @@ -667,12 +667,13 @@ pdf_document_get_info (EvDocument *document) "permissions", &permissions, "creator", &(info->creator), "producer", &(info->producer), - "creation-date", &(info->creation_date), - "mod-date", &(info->modified_date), "linearized", &linearized, "metadata", &metadata, NULL); + info->creation_date = (gint64) poppler_document_get_creation_date (PDF_DOCUMENT (document)->document); + info->modified_date = (gint64) poppler_document_get_modification_date (PDF_DOCUMENT (document)->document); + if (metadata != NULL) { pdf_document_parse_metadata (metadata, info); g_free (metadata); |