diff options
| author | Tyson Nottingham <tgnottingham@gmail.com> | 2020-12-29 15:14:33 -0800 |
|---|---|---|
| committer | Tyson Nottingham <tgnottingham@gmail.com> | 2021-01-11 12:13:26 -0800 |
| commit | f15fae822e3b1d2218699976219aecc26187dc9a (patch) | |
| tree | d8c2a7905df00d736de11e5cb46c605ff6f1e13e /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 52f21791fbec58e14a54b8c6f9146807a8ae8d84 (diff) | |
| download | rust-f15fae822e3b1d2218699976219aecc26187dc9a.tar.gz rust-f15fae822e3b1d2218699976219aecc26187dc9a.zip | |
rustc_serialize: fix incorrect signed LEB128 decoding
The signed LEB128 decoding function used a hardcoded constant of 64 instead of the number of bits in the type of integer being decoded, which resulted in incorrect results for some inputs. Fix this, make the decoding more consistent with the unsigned version, and increase the LEB128 encoding and decoding test coverage.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
