Attention is currently required from: Felix Singer, Nico Huber, Paul Menzel, Angel Pons.
Utkarsh Verma has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/74128 )
Change subject: arch/x86/smbios: Avoid buffer overflows
......................................................................
Patch Set 4:
(2 comments)
File src/arch/x86/smbios.c:
https://review.coreboot.org/c/coreboot/+/74128/comment/99918c27_76959046
PS4, Line 148: char string_buffer[15];
Thanks for pointing out the buffer size, will fix it in the next patch. […]
Wait, I just checked it again. Shouldn't 15 buffer size be enough?
Format string -> 11 chars with '\0'
Hex number -> 4 chars
https://review.coreboot.org/c/coreboot/+/74128/comment/ee9573af_843ba650
PS4, Line 552: static unsigned short cnt = 0;
Oh, this is a nice practical concept I didn't know. Thanks for the reference link. […]
Shouldn't have marked it as resolved, so just leaving this here. Please let me know if what I've suggested is okay or not.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/74128
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ibbf93fd113791b6faa1e5128da8e692f7f00ac73
Gerrit-Change-Number: 74128
Gerrit-PatchSet: 4
Gerrit-Owner: Utkarsh Verma
utkarsh@bitbanged.com
Gerrit-Reviewer: Angel Pons
th3fanbus@gmail.com
Gerrit-Reviewer: Felix Singer
felixsinger@posteo.net
Gerrit-Reviewer: Nico Huber
nico.h@gmx.de
Gerrit-Reviewer: Paul Menzel
paulepanter@mailbox.org
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-Attention: Felix Singer
felixsinger@posteo.net
Gerrit-Attention: Nico Huber
nico.h@gmx.de
Gerrit-Attention: Paul Menzel
paulepanter@mailbox.org
Gerrit-Attention: Angel Pons
th3fanbus@gmail.com
Gerrit-Comment-Date: Wed, 05 Apr 2023 23:48:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Nico Huber
nico.h@gmx.de
Comment-In-Reply-To: Angel Pons
th3fanbus@gmail.com
Comment-In-Reply-To: Utkarsh Verma
utkarsh@bitbanged.com
Gerrit-MessageType: comment