<p>Aladyshev Konstantin has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/20840">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">SMBIOS: Correct length calculation for empty string table<br><br>If all strings in SMBIOS table are empty, smbios_string_table_len<br>function should return 2, cause every table must end with "\0\0".<br><br>Change-Id: Ia3178b0030aa71e1ff11a3fd3d102942f0027eb1<br>Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com><br>---<br>M src/arch/x86/smbios.c<br>1 file changed, 4 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/40/20840/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c<br>index 72fb0df..8e95ea6 100644<br>--- a/src/arch/x86/smbios.c<br>+++ b/src/arch/x86/smbios.c<br>@@ -81,6 +81,10 @@<br>              p += i;<br>               len += i;<br>     }<br>+<br>+ if (!len)<br>+            return 2;<br>+<br>  return len + 1;<br> }<br> <br></pre><p>To view, visit <a href="https://review.coreboot.org/20840">change 20840</a>. To unsubscribe, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/20840"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ia3178b0030aa71e1ff11a3fd3d102942f0027eb1 </div>
<div style="display:none"> Gerrit-Change-Number: 20840 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Aladyshev Konstantin <aladyshev22@gmail.com> </div>