sync code with last improvements from OpenBSD
This commit is contained in:
commit
88965415ff
26235 changed files with 29195616 additions and 0 deletions
8
lib/libXpm/test/pixmaps/invalid/doom.xpm
Normal file
8
lib/libXpm/test/pixmaps/invalid/doom.xpm
Normal file
File diff suppressed because one or more lines are too long
11
lib/libXpm/test/pixmaps/invalid/doom2.xpm
Normal file
11
lib/libXpm/test/pixmaps/invalid/doom2.xpm
Normal file
File diff suppressed because one or more lines are too long
34
lib/libXpm/test/pixmaps/invalid/invalid-type.xpm
Normal file
34
lib/libXpm/test/pixmaps/invalid/invalid-type.xpm
Normal file
|
@ -0,0 +1,34 @@
|
|||
/* XPM2 invalid type name */
|
||||
static char * plaid[] = {
|
||||
/* plaid pixmap
|
||||
* width height ncolors chars_per_pixel */
|
||||
"22 22 4 2 0 0",
|
||||
/* colors */
|
||||
" c red m white s light_color ",
|
||||
"Y c green m black s lines_in_mix ",
|
||||
"+ c yellow m white s lines_in_dark ",
|
||||
"x m black s dark_color ",
|
||||
/* pixels */
|
||||
"x x x x x x x x x x x x + x x x x x ",
|
||||
" x x x x x x x x x x x x x x x x ",
|
||||
"x x x x x x x x x x x x + x x x x x ",
|
||||
" x x x x x x x x x x x x x x x x ",
|
||||
"x x x x x x x x x x x x + x x x x x ",
|
||||
"Y Y Y Y Y x Y Y Y Y Y + x + x + x + x + x + ",
|
||||
"x x x x x x x x x x x x + x x x x x ",
|
||||
" x x x x x x x x x x x x x x x x ",
|
||||
"x x x x x x x x x x x x + x x x x x ",
|
||||
" x x x x x x x x x x x x x x x x ",
|
||||
"x x x x x x x x x x x x + x x x x x ",
|
||||
" x x x x Y x x x ",
|
||||
" x x x Y x x ",
|
||||
" x x x x Y x x x ",
|
||||
" x x x Y x x ",
|
||||
" x x x x Y x x x ",
|
||||
"x x x x x x x x x x x x x x x x x x x x x x ",
|
||||
" x x x x Y x x x ",
|
||||
" x x x Y x x ",
|
||||
" x x x x Y x x x ",
|
||||
" x x x Y x x ",
|
||||
" x x x x Y x x x "
|
||||
};
|
2
lib/libXpm/test/pixmaps/invalid/no-contents.xpm
Normal file
2
lib/libXpm/test/pixmaps/invalid/no-contents.xpm
Normal file
|
@ -0,0 +1,2 @@
|
|||
/* XPM */
|
||||
/* Body intentionally left blank */
|
30
lib/libXpm/test/pixmaps/invalid/unending-comment-c.xpm
Normal file
30
lib/libXpm/test/pixmaps/invalid/unending-comment-c.xpm
Normal file
|
@ -0,0 +1,30 @@
|
|||
/* XPM */
|
||||
static char * sample_xpm[] = {
|
||||
"15 19 6 1",
|
||||
" c None",
|
||||
". c #FFFFFF",
|
||||
"+ c #000000",
|
||||
"@ c #99FFCC",
|
||||
"# c #66CCCC",
|
||||
"$ c #339966",
|
||||
/* This is the comment that never ends, it just goes on and on again...
|
||||
Based on test case provided by Marco Ivaldi for CVE-2022-46285
|
||||
".+++++++++++++.",
|
||||
"+@@@@@@@@@@@@#+",
|
||||
"+@###########$+",
|
||||
"+@###....####$+",
|
||||
"+@##......###$+",
|
||||
"+@#...$$...##$+",
|
||||
"+@#..$$##..$#$+",
|
||||
"+@##$$##...$#$+",
|
||||
"+@#####...$$#$+",
|
||||
"+@####...$$##$+",
|
||||
"+@####..$$###$+",
|
||||
"+@####..$####$+",
|
||||
"+@#####$$####$+",
|
||||
"+@####..#####$+",
|
||||
"+@####..$####$+",
|
||||
"+@#####$$####$+",
|
||||
"+@###########$+",
|
||||
"+#$$$$$$$$$$$$+",
|
||||
".+++++++++++++."};
|
37
lib/libXpm/test/pixmaps/invalid/zero-width-v1.xpm
Normal file
37
lib/libXpm/test/pixmaps/invalid/zero-width-v1.xpm
Normal file
|
@ -0,0 +1,37 @@
|
|||
#define PLAID_format 1
|
||||
#define PLAID_width 0
|
||||
#define PLAID_height 4294967293
|
||||
#define PLAID_ncolors 4
|
||||
#define PLAID_chars_per_pixel 2
|
||||
|
||||
static char *PLAID_colors[] = {
|
||||
" ", "red",
|
||||
"Y ", "green",
|
||||
"+ ", "yellow",
|
||||
"x ", "black"
|
||||
};
|
||||
|
||||
static char *PLAID_pixels[] = {
|
||||
"x x x x x x x x x x x x + x x x x x ",
|
||||
" x x x x x x x x x x x x x x x x ",
|
||||
"x x x x x x x x x x x x + x x x x x ",
|
||||
" x x x x x x x x x x x x x x x x ",
|
||||
"x x x x x x x x x x x x + x x x x x ",
|
||||
"Y Y Y Y Y x Y Y Y Y Y + x + x + x + x + x + ",
|
||||
"x x x x x x x x x x x x + x x x x x ",
|
||||
" x x x x x x x x x x x x x x x x ",
|
||||
"x x x x x x x x x x x x + x x x x x ",
|
||||
" x x x x x x x x x x x x x x x x ",
|
||||
"x x x x x x x x x x x x + x x x x x ",
|
||||
" x x x x Y x x x ",
|
||||
" x x x Y x x ",
|
||||
" x x x x Y x x x ",
|
||||
" x x x Y x x ",
|
||||
" x x x x Y x x x ",
|
||||
"x x x x x x x x x x x x x x x x x x x x x x ",
|
||||
" x x x x Y x x x ",
|
||||
" x x x Y x x ",
|
||||
" x x x x Y x x x ",
|
||||
" x x x Y x x ",
|
||||
" x x x x Y x x x "
|
||||
};
|
35
lib/libXpm/test/pixmaps/invalid/zero-width.xpm
Normal file
35
lib/libXpm/test/pixmaps/invalid/zero-width.xpm
Normal file
|
@ -0,0 +1,35 @@
|
|||
/* XPM */
|
||||
static char * plaid[] = {
|
||||
/* plaid pixmap
|
||||
* width height ncolors chars_per_pixel */
|
||||
"0 4294967293 4 2 ", /*cxpm hang*/
|
||||
/*"41474 31474 4 2 ",*/ /*ego ctrl all memory*/
|
||||
/* colors */
|
||||
" c red m white s light_color ",
|
||||
"Y c green m black s lines_in_mix ",
|
||||
"+ c yellow m white s lines_in_dark ",
|
||||
"x m black s dark_color ",
|
||||
/* pixels */
|
||||
"x x x x x x x x x x x x + x x x x x ",
|
||||
" x x x x x x x x x x x x x x x x ",
|
||||
"x x x x x x x x x x x x + x x x x x ",
|
||||
" x x x x x x x x x x x x x x x x ",
|
||||
"x x x x x x x x x x x x + x x x x x ",
|
||||
"Y Y Y Y Y x Y Y Y Y Y + x + x + x + x + x + ",
|
||||
"x x x x x x x x x x x x + x x x x x ",
|
||||
" x x x x x x x x x x x x x x x x ",
|
||||
"x x x x x x x x x x x x + x x x x x ",
|
||||
" x x x x x x x x x x x x x x x x ",
|
||||
"x x x x x x x x x x x x + x x x x x ",
|
||||
" x x x x Y x x x ",
|
||||
" x x x Y x x ",
|
||||
" x x x x Y x x x ",
|
||||
" x x x Y x x ",
|
||||
" x x x x Y x x x ",
|
||||
"x x x x x x x x x x x x x x x x x x x x x x ",
|
||||
" x x x x Y x x x ",
|
||||
" x x x Y x x ",
|
||||
" x x x x Y x x x ",
|
||||
" x x x Y x x ",
|
||||
" x x x x Y x x x "
|
||||
} ;
|
Loading…
Add table
Add a link
Reference in a new issue