| commit | 6ef7949448bbe3fdb1a0cf3dcbd32fd46c4baf9d | [log] [tgz] |
|---|---|---|
| author | Andrew Scull <ascull@google.com> | Wed Sep 09 15:50:42 2015 -0700 |
| committer | Andrew Scull <ascull@google.com> | Wed Sep 09 15:50:42 2015 -0700 |
| tree | 0042ae08e171a0438956817d067d05e3b72bd3d1 | |
| parent | 2c688f62f53fcf719bacce32ca615a582ce5c40b [diff] |
Add UBSAN build option and fix undefined behaviour errors. 1. The assembler tried to write to unaligned addresses but memcpy fixes this. 2. The InstKind and OperandKind enums allowed target specific kinds that did not fall in the defined range. Defining the maximum target kind in the enum sorts this problem. BUG= R=stichnot@chromium.org Review URL: https://codereview.chromium.org/1311653003 .