Re: [edk2] [BUG] Wrong StrLen usage in UnicodeStrToAsciiStr()

2014-07-17 Thread Gao, Liming
Star: Your patch is good. Reviewed-by: Gao, Liming Thanks Liming From: Zeng, Star [mailto:star.z...@intel.com] Sent: Monday, July 14, 2014 9:34 AM To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] [BUG] Wrong StrLen usage in UnicodeStrToAsciiStr() Hi Sergey, For "During

Re: [edk2] [BUG] Wrong StrLen usage in UnicodeStrToAsciiStr()

2014-07-13 Thread Zeng, Star
sakov [mailto:isakov...@bk.ru] Sent: Saturday, July 12, 2014 12:55 PM To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] [BUG] Wrong StrLen usage in UnicodeStrToAsciiStr() Hi Star, Comments inline Regards, Sergey Hi Sergey, My comments added below. Thanks, Star From: Sergey Isakov [mailto

Re: [edk2] [BUG] Wrong StrLen usage in UnicodeStrToAsciiStr()

2014-07-11 Thread Sergey Isakov
e) * sizeof (CHAR16)))” will be > not triggered, the function’s behavior is incorrect. In the patch the code is > updated to cover the bug. > > > Thanks, > Star > From: Tian, Feng [mailto:feng.t...@intel.com] > Sent: Monday, July 07, 2014 1:36 PM > To: edk2-devel@l

Re: [edk2] [BUG] Wrong StrLen usage in UnicodeStrToAsciiStr()

2014-07-11 Thread Zeng, Star
Hi Sergey, My comments added below. Thanks, Star From: Sergey Isakov [mailto:isakov...@bk.ru] Sent: Friday, July 11, 2014 7:05 PM To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] [BUG] Wrong StrLen usage in UnicodeStrToAsciiStr() Hi Star, Did you want to correct second line? ASSERT

Re: [edk2] [BUG] Wrong StrLen usage in UnicodeStrToAsciiStr()

2014-07-11 Thread Sergey Isakov
s, > Star > From: Tian, Feng [mailto:feng.t...@intel.com] > Sent: Monday, July 07, 2014 1:36 PM > To: edk2-devel@lists.sourceforge.net > Subject: Re: [edk2] [BUG] Wrong StrLen usage in UnicodeStrToAsciiStr() > > Hi, Isakov > > Thanks for raising this issue. We will w

Re: [edk2] [BUG] Wrong StrLen usage in UnicodeStrToAsciiStr()

2014-07-10 Thread Zeng, Star
he function's behavior is incorrect. In the patch the code is updated to cover the bug. Thanks, Star From: Tian, Feng [mailto:feng.t...@intel.com] Sent: Monday, July 07, 2014 1:36 PM To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] [BUG] Wrong StrLen usage in UnicodeStrToAsciiStr() Hi,

Re: [edk2] [BUG] Wrong StrLen usage in UnicodeStrToAsciiStr()

2014-07-06 Thread Tian, Feng
Hi, Isakov Thanks for raising this issue. We will work on it. Thanks Feng From: Sergey Isakov [mailto:isakov...@bk.ru] Sent: Friday, July 04, 2014 18:13 To: edk2-devel@lists.sourceforge.net Subject: [edk2] [BUG] Wrong StrLen usage in UnicodeStrToAsciiStr() Hi, In function UnicodeStrToAsciiStr

[edk2] [BUG] Wrong StrLen usage in UnicodeStrToAsciiStr()

2014-07-04 Thread Sergey Isakov
Hi, In function UnicodeStrToAsciiStr there is a comparison - // // Source and Destination should not overlap // ASSERT ((UINTN) ((CHAR16 *) Destination - Source) > StrLen (Source)); ASSERT ((UINTN) ((CHAR8 *) Source - Destination) > StrLen (Source)); - This is wrong beca