Exploit databaseDownload repository ZIP
GH-557a35ec88cecc5153df8ffeda95d1c2
bob11vrdp/cve-2022-39425
Sources for CVE-2022-39425
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files46
bob11vrdp/cve-2022-39425Revision 1d03f54cf1ec
- ↑..Parent directory
- mme/
- gm107_texture.xml.h
- nvc0_3d.xml.h
- nvc0_compute.c
- nvc0_compute.xml.h
- nvc0_context.c
- nvc0_context.h
- nvc0_formats.c
- nvc0_m2mf.xml.h
- nvc0_macros.h
- nvc0_miptree.c
- nvc0_program.c
- nvc0_program.h
- nvc0_query.c
- nvc0_query.h
- nvc0_query_hw.c
- nvc0_query_hw.h
- nvc0_query_hw_metric.c
- nvc0_query_hw_metric.h
- nvc0_query_hw_sm.c
- nvc0_query_hw_sm.h
- nvc0_query_sw.c
- nvc0_query_sw.h
- nvc0_resource.c
- nvc0_resource.h
- nvc0_screen.c
- nvc0_screen.h
- nvc0_shader_state.c
- nvc0_state.c
- nvc0_state_validate.c
- nvc0_stateobj.h
- nvc0_surface.c
- nvc0_tex.c
- nvc0_transfer.c
- nvc0_vbo.c
- nvc0_vbo_translate.c
- nvc0_video.c
- nvc0_video.h
- nvc0_video_bsp.c
- nvc0_video_ppp.c
- nvc0_video_vp.c
- nvc0_winsys.h
- nve4_compute.c
- nve4_compute.h
- nve4_compute.xml.h
- nve4_p2mf.xml.h
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
VirtualBox-6.1.38/src/VBox/Additions/3D/mesa/mesa-17.3.9/src/gallium/drivers/nouveau/nvc0/nvc0_resource.c
C · 2,120 bytes
#include "pipe/p_context.h"
#include "nvc0/nvc0_resource.h"
#include "nouveau_screen.h"
static struct pipe_resource *
nvc0_resource_create(struct pipe_screen *screen,
const struct pipe_resource *templ)
{
switch (templ->target) {
case PIPE_BUFFER:
return nouveau_buffer_create(screen, templ);
default:
return nvc0_miptree_create(screen, templ);
}
}
static struct pipe_resource *
nvc0_resource_from_handle(struct pipe_screen * screen,
const struct pipe_resource *templ,
struct winsys_handle *whandle,
unsigned usage)
{
if (templ->target == PIPE_BUFFER) {
return NULL;
} else {
struct pipe_resource *res = nv50_miptree_from_handle(screen,
templ, whandle);
if (res)
nv04_resource(res)->vtbl = &nvc0_miptree_vtbl;
return res;
}
}
static struct pipe_surface *
nvc0_surface_create(struct pipe_context *pipe,
struct pipe_resource *pres,
const struct pipe_surface *templ)
{
if (unlikely(pres->target == PIPE_BUFFER))
return nv50_surface_from_buffer(pipe, pres, templ);
return nvc0_miptree_surface_new(pipe, pres, templ);
}
void
nvc0_init_resource_functions(struct pipe_context *pcontext)
{
pcontext->transfer_map = u_transfer_map_vtbl;
pcontext->transfer_flush_region = u_transfer_flush_region_vtbl;
pcontext->transfer_unmap = u_transfer_unmap_vtbl;
pcontext->buffer_subdata = u_default_buffer_subdata;
pcontext->texture_subdata = u_default_texture_subdata;
pcontext->create_surface = nvc0_surface_create;
pcontext->surface_destroy = nv50_surface_destroy;
pcontext->invalidate_resource = nv50_invalidate_resource;
}
void
nvc0_screen_init_resource_functions(struct pipe_screen *pscreen)
{
pscreen->resource_create = nvc0_resource_create;
pscreen->resource_from_handle = nvc0_resource_from_handle;
pscreen->resource_get_handle = u_resource_get_handle_vtbl;
pscreen->resource_destroy = u_resource_destroy_vtbl;
}