Skip to content

Instantly share code, notes, and snippets.

;; Function paint_window (_ZL12paint_windowP18steamcompmgr_win_tS0_P11FrameInfo_tP11MouseCursorjfS0_.lto_priv.0, funcdef_no=157, decl_uid=6649, cgraph_uid=611, symbol_order=6764)
void paint_window (struct steamcompmgr_win_t * w, struct steamcompmgr_win_t * scaleW, struct FrameInfo_t * frameInfo, struct MouseCursor * cursor, PaintWindowFlags flags, float flOpacityScale, struct steamcompmgr_win_t * fit)
{
void * D.15888;
vector(4) float vect__149.323;
vector(4) float vect__147.321;
float * vectp.312;
vector(2) float vect__92.310;
vector(2) int vect__91.309;
@sharkautarch
sharkautarch / gist:2d97fec229221d630b8d8ec534cb6481
Created June 4, 2024 18:14
gamescope_paint_window_orig.ir
;; Function paint_window (_ZL12paint_windowP18steamcompmgr_win_tS0_P11FrameInfo_tP11MouseCursorjfS0_.lto_priv.0, funcdef_no=158, decl_uid=6650, cgraph_uid=614, symbol_order=6764)
void paint_window (struct steamcompmgr_win_t * w, struct steamcompmgr_win_t * scaleW, struct FrameInfo_t * frameInfo, struct MouseCursor * cursor, PaintWindowFlags flags, float flOpacityScale, struct steamcompmgr_win_t * fit)
{
void * D.16499;
vector(4) float vect__149.395;
vector(4) float vect__147.393;
float * vectp.384;
vector(2) float vect__92.382;
vector(2) int vect__91.381;
<paint_window(steamcompmgr_win_t*, steamcompmgr_win_t*, FrameInfo_t*, MouseCursor*, unsigned int, float, steamcompmgr_win_t*) [clone .lto_priv.0]>:
push rbp
mov rbp,rsp
push r15
push r14
mov r14,rdx
push r13
mov r13,rsi
lea rsi,[rbp-0x58]
push r12
@sharkautarch
sharkautarch / gist:bb18ba9793f3d8ac5a8f62feaa9848ad
Created June 4, 2024 18:05
gamescope_paint_window_orig.asm
<paint_window(steamcompmgr_win_t*, steamcompmgr_win_t*, FrameInfo_t*, MouseCursor*, unsigned int, float, steamcompmgr_win_t*) [clone .lto_priv.0]>:
push rbp
mov rbp,rsp
push r15
push r14
mov r14,rdi
push r13
mov r13d,r8d
push r12
push rbx
$ '/usr/bin/clang++' '-cc1' '-triple' 'x86_64-pc-linux-gnu' '-analyze' '-disable-free' '-clear-ast-before-backend' '-disable-llvm-verifier' '-discard-value-names' '-main-file-name' 'commit.cpp' '-analyzer-checker=core' '-analyzer-checker=apiModeling' '-analyzer-checker=unix' '-analyzer-checker=deadcode' '-analyzer-checker=cplusplus' '-analyzer-checker=security.insecureAPI.UncheckedReturn' '-analyzer-checker=security.insecureAPI.getpw' '-analyzer-checker=security.insecureAPI.gets' '-analyzer-checker=security.insecureAPI.mktemp' '-analyzer-checker=security.insecureAPI.mkstemp' '-analyzer-checker=security.insecureAPI.vfork' '-analyzer-checker=nullability.NullPassedToNonnull' '-analyzer-checker=nullability.NullReturnedFromNonnull' '-analyzer-output' 'plist' '-w' '-setup-static-analyzer' '-mrelocation-model' 'pic' '-pic-level' '2' '-pic-is-pie' '-mframe-pointer=all' '-menable-no-infs' '-menable-no-nans' '-fapprox-func' '-funsafe-math-optimizations' '-fno-signed-zeros' '-mreassociate' '-freciprocal-math' '-fdenorma
@sharkautarch
sharkautarch / gist:9a95116fe22bfa14e248a7c131673925
Created April 26, 2024 17:32
new use-after-free warning found in gamescope by scan-build (extra verbose)
'/usr/bin/clang++' '-cc1' '-triple' 'x86_64-pc-linux-gnu' '-analyze' '-disable-free' '-clear-ast-before-backend' '-disable-llvm-verifier' '-discard-value-names' '-main-file-name' 'commit.cpp' '-analyzer-checker=core' '-analyzer-checker=apiModeling' '-analyzer-checker=unix' '-analyzer-checker=deadcode' '-analyzer-checker=cplusplus' '-analyzer-checker=security.insecureAPI.UncheckedReturn' '-analyzer-checker=security.insecureAPI.getpw' '-analyzer-checker=security.insecureAPI.gets' '-analyzer-checker=security.insecureAPI.mktemp' '-analyzer-checker=security.insecureAPI.mkstemp' '-analyzer-checker=security.insecureAPI.vfork' '-analyzer-checker=nullability.NullPassedToNonnull' '-analyzer-checker=nullability.NullReturnedFromNonnull' '-analyzer-output' 'plist' '-w' '-setup-static-analyzer' '-mrelocation-model' 'pic' '-pic-level' '2' '-pic-is-pie' '-mframe-pointer=all' '-menable-no-infs' '-menable-no-nans' '-fapprox-func' '-funsafe-math-optimizations' '-fno-signed-zeros' '-mreassociate' '-freciprocal-math' '-fdenormal-
@sharkautarch
sharkautarch / gist:2d6147f559e178417eff4650462147ff
Created April 21, 2024 15:16
Modified version of archlinux repo vvl pkgbuild, to build vulkan-validation-layers-git
# Modified version of archlinux repo vvl pkgbuild, to build vulkan-validation-layers-git - sharkautarch
# Maintainer: Laurent Carlier <lordheavym@gmail.com>
pkgname=vulkan-validation-layers
pkgver=1.3.275
pkgrel=1
pkgdesc="Vulkan Validation Layers - latest git"
arch=(x86_64)
url="https://www.khronos.org/vulkan/"
license=('custom')
@sharkautarch
sharkautarch / PKGBUILD
Last active March 24, 2024 16:36
test_w_no_lut pkgbuild
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
# Contributor: Samuel "scrufulufugus" Monson <smonson@irbash.net>
# Contributor: PedroHLC <root@pedrohlc.com>
pkgname=gamescope
pkgver=3.14.21
pkgrel=1
pkgdesc='SteamOS session compositing window manager'
arch=(x86_64)
# gamescope-git PKGBUILD modified to build w/ clang UndefinedBehaviorSanitizer -- sharkautarch
# PKGBUILD based on the official Arch gamescope PKGBUILD
# Maintainer - Sid Pranjale <sidpranjale127@protonmail.com>
# Maintainer: Sefa Eyeoglu <contact@scrumplex.net>
# Maintainer: Bouke Sybren Haarsma <boukehaarsma23 at gmail dot com>
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
# Contributor: Samuel "scrufulufugus" Monson <smonson@irbash.net>
# Contributor: PedroHLC <root@pedrohlc.com>
# Maintainer: archeese
_pkgmainbranch=nvidia-utils
pkgbase=nvidia-535xx-utils
pkgname=('nvidia-535xx-utils' 'opencl-nvidia-535xx' 'nvidia-535xx-dkms')
pkgver=535.154.05
pkgrel=1
pkgdesc="NVIDIA drivers for Linux, 535 branch, dkms"
arch=('x86_64')
url="http://www.nvidia.com/"