mirror of
https://github.com/RGBCube/serenity
synced 2026-01-14 07:01:00 +00:00
This code attempts to copy the `Protocol::Resource3DSpecification` struct into request, starting at `Protocol::ResourceCreate3D::target` member of the `Protocol::ResourceCreate3D` struct. The problem is that the `Protocol::Resource3DSpecification` struct does not having the trailing `u32 padding` that the `ResourceCreate3D` struct has. Leading to memcopy overrunning the struct and corrupting 32 bits of data trailing the struct. Found by SonarCloud: - Memory copy function overflows the destination buffer. |
||
|---|---|---|
| .. | ||
| Console.cpp | ||
| Console.h | ||
| FramebufferDevice.cpp | ||
| FramebufferDevice.h | ||
| GPU3DDevice.cpp | ||
| GPU3DDevice.h | ||
| GraphicsAdapter.cpp | ||
| GraphicsAdapter.h | ||
| Protocol.h | ||