Phar timestamp is 32-bit
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start with the _phar_entry_info definition shown in the issue and audit the Phar code paths that use its timestamp field. Done means the 32-bit timestamp limitation and any required file-format changes are addressed across Phar.
Written by the indexing model from the issue text.
Description
Description
From the definition of the entry info:
typedef struct _phar_entry_info {
/* first bytes are exactly as in file */
uint32_t uncompressed_filesize;
uint32_t timestamp;
We can see that the timestamp is 32-bit... This will give problems in the near future and we should audit Phar's code such that this issue is gone. This might also imply changes to the file format.
PHP Version
All
Operating System
No response
- Dominant language
- C
- Stars
- 40.4k
- Forks
- 8.2k
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 103
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from php/php-src
-
Bug SAPI: cli_server Status: Verified
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Bug Status: Needs Triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Bug Status: Needs Triage
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Bug Status: Needs Triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Bug Category: Tests Status: Verified
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Similar issues
-
[adam] AdamNet network read doesn't cap to MAX_ADAM_PACKET_LEN, overflows client receive buffers Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
FujiNetWIFI/fujinet-firmware#1649 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
HarbourMasters/Shipwright#7229 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
riscv-software-src/riscv-isa-sim#2435 · 1 comment ·
-
bug Self Built Image SNAPSHOT Supported Device target/ramips
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100