Page MenuHomePhorge

D25409.1737413595.diff
No OneTemporary

D25409.1737413595.diff

diff --git a/src/parser/ArcanistBundle.php b/src/parser/ArcanistBundle.php
--- a/src/parser/ArcanistBundle.php
+++ b/src/parser/ArcanistBundle.php
@@ -762,7 +762,7 @@
$old_data = $this->getBlob($old_phid, $name);
}
- $old_length = strlen($old_data);
+ $old_length = ($old_data === null) ? 0 : strlen($old_data);
// Here, and below, the binary will be emitted with base85 encoding. This
// encoding encodes each 4 bytes of input in 5 bytes of output, so we may
@@ -795,7 +795,7 @@
$new_data = $this->getBlob($new_phid, $name);
}
- $new_length = strlen($new_data);
+ $new_length = ($new_data === null) ? 0 : strlen($new_data);
$this->reserveBytes($new_length * 5 / 4);
if ($new_data === null) {

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 20, 22:53 (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1140499
Default Alt Text
D25409.1737413595.diff (758 B)

Event Timeline