mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-07 05:10:20 +00:00
mcpp: Normalize the patch format of CVE
Because CVE-2019-14274.patch is included in ice-mcpp.patch, the cve-check-tool fails to correctly judge the CVE of the OSS. CVE-2019-14274.patch is separated from ice-mcpp.patch to fix the problem. Signed-off-by: Zang Ruochen <zangrc.fnst@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -114,37 +114,6 @@ diff -r -c -N ../mcpp-2.7.2-old/src/main.c ./src/main.c
|
||||
}
|
||||
|
||||
int mcpp_lib_main
|
||||
diff -r -c -N ../mcpp-2.7.2-old/src/support.c ./src/support.c
|
||||
*** ../mcpp-2.7.2-old/src/support.c Tue Jun 10 06:02:33 2008
|
||||
--- ./src/support.c Fri May 14 12:40:56 2010
|
||||
***************
|
||||
*** 188,194 ****
|
||||
size_t length
|
||||
)
|
||||
{
|
||||
! if (mem_buf_p->bytes_avail < length) { /* Need to allocate more memory */
|
||||
size_t size = MAX( BUF_INCR_SIZE, length);
|
||||
|
||||
if (mem_buf_p->buffer == NULL) { /* 1st append */
|
||||
--- 188,194 ----
|
||||
size_t length
|
||||
)
|
||||
{
|
||||
! if (mem_buf_p->bytes_avail < length + 1) { /* Need to allocate more memory */
|
||||
size_t size = MAX( BUF_INCR_SIZE, length);
|
||||
|
||||
if (mem_buf_p->buffer == NULL) { /* 1st append */
|
||||
***************
|
||||
*** 1722,1727 ****
|
||||
--- 1722,1729 ----
|
||||
sp -= 2;
|
||||
while (*sp != '\n') /* Until end of line */
|
||||
mcpp_fputc( *sp++, OUT);
|
||||
+ mcpp_fputc( '\n', OUT);
|
||||
+ wrong_line = TRUE;
|
||||
}
|
||||
goto end_line;
|
||||
default: /* Not a comment */
|
||||
diff -r -c -N ../mcpp-2.7.2-old/src/system.c ./src/system.c
|
||||
*** ../mcpp-2.7.2-old/src/system.c 2008-11-26 10:53:51.000000000 +0100
|
||||
--- ./src/system.c 2011-02-21 16:18:05.678058106 +0100
|
||||
|
||||
Reference in New Issue
Block a user