Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Hopefully get the viewport position/dimensions validation correct this time.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16782 a1c6a512-1295-4272-9138-f99709370657

+8 -4
+8 -4
apps/gui/wps_parser.c
··· 593 593 #ifdef HAVE_REMOTE_LCD 594 594 if (wps_data->remote_wps) 595 595 { 596 - if (((vp->x + vp->width) >= LCD_REMOTE_WIDTH) || 597 - ((vp->y + vp->height) >= LCD_REMOTE_HEIGHT)) 596 + if ((vp->x >= LCD_REMOTE_WIDTH) || 597 + ((vp->x + vp->width) > LCD_REMOTE_WIDTH) || 598 + (vp->y >= LCD_REMOTE_HEIGHT) || 599 + ((vp->y + vp->height) > LCD_REMOTE_HEIGHT)) 598 600 { 599 601 return WPS_ERROR_INVALID_PARAM; 600 602 } ··· 602 604 else 603 605 #else 604 606 { 605 - if (((vp->x + vp->width) >= LCD_WIDTH) || 606 - ((vp->y + vp->height) >= LCD_HEIGHT)) 607 + if ((vp->x >= LCD_WIDTH) || 608 + ((vp->x + vp->width) > LCD_WIDTH) || 609 + (vp->y >= LCD_HEIGHT) || 610 + ((vp->y + vp->height) > LCD_HEIGHT)) 607 611 { 608 612 return WPS_ERROR_INVALID_PARAM; 609 613 }