add patched/unpatched reproducer packages for screen uaf
This commit is contained in:
parent
b05861de78
commit
e85cd40266
1 changed files with 21 additions and 0 deletions
21
flake.nix
21
flake.nix
|
|
@ -87,6 +87,27 @@
|
|||
'';
|
||||
docs = pkgs.callPackage ./nix/docs.nix { inherit self; };
|
||||
default = nova-shell;
|
||||
|
||||
# Reproducer for the qtbase wayland screen UAF, built twice:
|
||||
# patched (should survive) and unpatched (should crash).
|
||||
screen-uaf-reproducer-patched = pkgs.stdenv.mkDerivation {
|
||||
pname = "screen-uaf-reproducer-patched";
|
||||
version = "0";
|
||||
src = ./test/screen-uaf-reproducer;
|
||||
nativeBuildInputs = [ pkgs.cmake pkgs.qt6.wrapQtAppsHook ];
|
||||
buildInputs = [ pkgs.qt6.qtbase ];
|
||||
};
|
||||
screen-uaf-reproducer-unpatched =
|
||||
let
|
||||
rawPkgs = nixpkgs.legacyPackages.${pkgs.stdenv.hostPlatform.system};
|
||||
in
|
||||
rawPkgs.stdenv.mkDerivation {
|
||||
pname = "screen-uaf-reproducer-unpatched";
|
||||
version = "0";
|
||||
src = ./test/screen-uaf-reproducer;
|
||||
nativeBuildInputs = [ rawPkgs.cmake rawPkgs.qt6.wrapQtAppsHook ];
|
||||
buildInputs = [ rawPkgs.qt6.qtbase ];
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue