]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/qte/qte-2.3.10/fix-linuxfb-offscreenoverflow.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / qte / qte-2.3.10 / fix-linuxfb-offscreenoverflow.patch
1 Fix an overflow when the amount of requested cache memory
2 is greater than the *lowest value
3 Manuel Teira <manuel.teira@telefonica.net>
4
5 #
6 # Patch managed by http://www.holgerschurig.de/patcher.html
7 #
8
9 --- qt-2.3.10/src/kernel/qgfxlinuxfb_qws.cpp~fix-linuxfb-offscreenoverflow
10 +++ qt-2.3.10/src/kernel/qgfxlinuxfb_qws.cpp
11 @@ -610,6 +610,11 @@
12  
13      // No free blocks in already-taken memory; get some more
14      // if we can
15 +    if ( amount >= (*lowest ) ) {
16 +       //Avoid this overflow
17 +       qt_fbdpy->ungrab();
18 +       return 0;
19 +    }
20      unsigned int newlowest = (*lowest)-amount;
21      if (newlowest % align) {
22                 newlowest -= align;