]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/ChangeLog
rust: Fix null deref when casting (PR 23124)
authorDan Robertson <danlrobertson89@gmail.com>
Sat, 28 Apr 2018 03:18:00 +0000 (03:18 +0000)
committerTom Tromey <tom@tromey.com>
Tue, 1 May 2018 05:02:01 +0000 (23:02 -0600)
commit1632f8baf04e7351f387e58957fc04498d90987d
treecf269dd68ec1db621ddadd18abe7851d1f249318
parente31efe56455e4a0e84d2157e942e51f8ac94e9fc
rust: Fix null deref when casting (PR 23124)

Fix a null dereference when casting a value to a unit type.

ChangeLog
2018-04-28  Dan Robertson  <danlrobertson89@gmail.com>

PR rust/23124
* gdb/rust-exp.y (convert_params_to_types): Ensure that the params
pointer is not null before dereferencing it.

testsuite/ChangeLog
2018-04-28  Dan Robertson  <danlrobertson89@gmail.com>

PR rust/23124
* gdb.rust/expr.exp: Test that the unit type is correctly parsed
when casting.
gdb/ChangeLog
gdb/rust-exp.y
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.rust/expr.exp