Commit dd46a0b
Andrew Thompson
If the certificate arrays happen to be sparsely indexed this can blow out the memory.
One scenario is indexing the certificates based on the short hash, php
will magically expand this hex string in to a very large index number.
eg,
'd5c242d7' => '-----BEGIN CERTIFICATE-----...'
will cause loop to go from i=0 to i=35862781031 parent b41f731 commit dd46a0b
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
941 | 941 | | |
942 | 942 | | |
943 | 943 | | |
944 | | - | |
945 | | - | |
| 944 | + | |
| 945 | + | |
946 | 946 | | |
947 | 947 | | |
948 | 948 | | |
949 | | - | |
950 | | - | |
| 949 | + | |
| 950 | + | |
951 | 951 | | |
952 | 952 | | |
953 | 953 | | |
| |||
0 commit comments