Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 299134 Details for
Bug 282661
Reproducible crash in libvnc.so [crashes Xorg]
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch which validates framebuffer bounds before framebuffer dump
vnc-bounds.patch (text/plain), 2.11 KB, created by
Adam Tkac
on 2008-03-26 11:56:03 UTC
(
hide
)
Description:
Patch which validates framebuffer bounds before framebuffer dump
Filename:
MIME Type:
Creator:
Adam Tkac
Created:
2008-03-26 11:56:03 UTC
Size:
2.11 KB
patch
obsolete
>diff -up vnc-4_1_2-unixsrc/unix/xorg-server-1.1.1/hw/vnc/XserverDesktop.cc.bounds vnc-4_1_2-unixsrc/unix/xorg-server-1.1.1/hw/vnc/XserverDesktop.cc >--- vnc-4_1_2-unixsrc/unix/xorg-server-1.1.1/hw/vnc/XserverDesktop.cc.bounds 2008-03-17 16:46:27.000000000 +0100 >+++ vnc-4_1_2-unixsrc/unix/xorg-server-1.1.1/hw/vnc/XserverDesktop.cc 2008-03-17 16:59:11.000000000 +0100 >@@ -486,32 +486,36 @@ void XserverDesktop::add_changed(RegionP > { > if (ignoreHooks_) return; > if (grabbing) return; >+ >+ BoxRec screenbox; >+ RegionPtr newreg = REGION_CREATE(pScreen, 0, 0); >+ >+ screenbox.x1 = screenbox.y1 = 0; >+ screenbox.x2 = pScreen->width; >+ screenbox.y2 = pScreen->height; >+ >+ RegionPtr screenreg = REGION_CREATE(pScreen, &screenbox, 0); >+ REGION_INTERSECT(pScreen, newreg, reg, screenreg); >+ REGION_DESTROY (pScreen, screenreg); >+ > try { > rfb::Region rfbReg; >- rfbReg.setExtentsAndOrderedRects((ShortRect*)REGION_EXTENTS(pScreen, reg), >- REGION_NUM_RECTS(reg), >- (ShortRect*)REGION_RECTS(reg)); >+ rfbReg.setExtentsAndOrderedRects((ShortRect*)REGION_EXTENTS(pScreen, newreg), >+ REGION_NUM_RECTS(newreg), >+ (ShortRect*)REGION_RECTS(newreg)); > server->add_changed(rfbReg); > deferUpdate(); > } catch (rdr::Exception& e) { > vlog.error("XserverDesktop::add_changed: %s",e.str()); > } >+ REGION_DESTROY (pScreen, newreg); > } > > void XserverDesktop::add_copied(RegionPtr dst, int dx, int dy) > { >- if (ignoreHooks_) return; >- if (grabbing) return; >- try { >- rfb::Region rfbReg; >- rfbReg.setExtentsAndOrderedRects((ShortRect*)REGION_EXTENTS(pScreen, dst), >- REGION_NUM_RECTS(dst), >- (ShortRect*)REGION_RECTS(dst)); >- server->add_copied(rfbReg, rfb::Point(dx, dy)); >- deferUpdate(); >- } catch (rdr::Exception& e) { >- vlog.error("XserverDesktop::add_copied: %s",e.str()); >- } >+ add_changed (dst); >+ REGION_TRANSLATE (pScreen, dst, -dx, -dy); >+ add_changed (dst); > } > > void XserverDesktop::positionCursor()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 282661
:
280481
| 299134