Prevent a bad .Psize expression from triggering a memory access violation.
authorNick Clifton <nickc@redhat.com>
Tue, 9 Feb 2021 12:53:32 +0000 (12:53 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 9 Feb 2021 12:53:32 +0000 (12:53 +0000)
commit4a68fcd7f7da92d47f0f41df15fea30f790ed06c
treefea666ca189d56117d8ff25a6dbb2a53738f3553
parent52563b0f1c5516930b4507861d261529483a5e83
Prevent a bad .Psize expression from triggering a memory access violation.

PR 27384
* listing.c (listing_psize): Check the result of the width
expression before assigning it to paper_width.
* testsuite/gas/all/pr27384.s: New test source file.
* testsuite/gas/all/pr27384.d: New test control file.
* testsuite/gas/all/pr27384.err: Expected errors from new test.
* testsuite/gas/all/gas.exp: Run the new test.
gas/ChangeLog
gas/listing.c
gas/testsuite/gas/all/gas.exp
gas/testsuite/gas/all/pr27384.d [new file with mode: 0644]
gas/testsuite/gas/all/pr27384.err [new file with mode: 0644]
gas/testsuite/gas/all/pr27384.s [new file with mode: 0644]
This page took 0.026628 seconds and 4 git commands to generate.