Remove ALL_OBJFILES_SAFE
[deliverable/binutils-gdb.git] / gdb / valprint.c
index 2b63a91e8dfd5d8ca1dce3d054fc6fb4ff646dc8..72a40dcc3283be454495476f5c8785fd7339f23f 100644 (file)
@@ -1,6 +1,6 @@
 /* Print values for GDB, the GNU debugger.
 
-   Copyright (C) 1986-2018 Free Software Foundation, Inc.
+   Copyright (C) 1986-2019 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -1604,6 +1604,7 @@ maybe_negate_by_bytes (const gdb_byte *bytes, unsigned len,
                       gdb::byte_vector *out_vec)
 {
   gdb_byte sign_byte;
+  gdb_assert (len > 0);
   if (byte_order == BFD_ENDIAN_BIG)
     sign_byte = bytes[0];
   else
This page took 0.023409 seconds and 4 git commands to generate.