From 06c434f769ebbe783bc524591b780eefc65e05d6 Mon Sep 17 00:00:00 2001 From: "S.Pawan Kumar" <30653405+Dracarys99@users.noreply.github.com> Date: Thu, 22 Oct 2020 05:37:54 +0000 Subject: [PATCH] Update htif.cc (#577) Bug fix for final byte in signature output. --- fesvr/htif.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fesvr/htif.cc b/fesvr/htif.cc index c989cd15..30b13dea 100644 --- a/fesvr/htif.cc +++ b/fesvr/htif.cc @@ -178,7 +178,7 @@ void htif_t::stop() for (addr_t i = 0; i < sig_len; i += line_size) { for (addr_t j = line_size; j > 0; j--) - if (i+j < sig_len) + if (i+j <= sig_len) sigs << std::setw(2) << (uint16_t)buf[i+j-1]; else sigs << std::setw(2) << (uint16_t)0;