[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Freeipmi-devel] [bug #38790] Invalid "Confidentiality Pad Length" value
From: |
Rob Swindell |
Subject: |
[Freeipmi-devel] [bug #38790] Invalid "Confidentiality Pad Length" value in encrypted RMCP+ packets |
Date: |
Thu, 25 Apr 2013 01:31:09 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.22) Gecko/20110902 Firefox/3.6.22 |
Follow-up Comment #1, bug #38790 (project freeipmi):
Here's the patch:
Index: libfreeipmi/interface/ipmi-rmcpplus-interface.c
===================================================================
--- libfreeipmi/interface/ipmi-rmcpplus-interface.c (revision 9608)
+++ libfreeipmi/interface/ipmi-rmcpplus-interface.c (working copy)
@@ -808,7 +808,7 @@
/* Pad the data appropriately */
/* +1 is for the pad length field */
- pad_len = IPMI_CRYPT_AES_CBC_128_BLOCK_LENGTH - ((payload_len + 1) %
IPMI_CRYPT_AES_CBC_128_BLOCK_LENGTH);
+ pad_len = (IPMI_CRYPT_AES_CBC_128_BLOCK_LENGTH - ((payload_len + 1) %
IPMI_CRYPT_AES_CBC_128_BLOCK_LENGTH)) &
(IPMI_CRYPT_AES_CBC_128_BLOCK_LENGTH-1);
if ((payload_len + pad_len + 1) > IPMI_MAX_PAYLOAD_LENGTH)
{
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38790>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/