@@ -725,6 +725,7 @@ func TestScan(t *testing.T) {
725725 Kparams : kevent.Kparams {
726726 kparams .ProcessID : {Name : kparams .ProcessID , Type : kparams .PID , Value : pid },
727727 kparams .FileViewBase : {Name : kparams .FileViewBase , Type : kparams .Address , Value : uint64 (0x7ffe0000 )},
728+ kparams .FileViewSize : {Name : kparams .FileViewSize , Type : kparams .Uint64 , Value : uint64 (12333 )},
728729 kparams .MemProtect : {Name : kparams .MemProtect , Type : kparams .Flags , Value : uint32 (kevent .SectionRX ), Flags : kevent .ViewProtectionFlags },
729730 },
730731 Metadata : make (map [kevent.MetadataKey ]any ),
@@ -780,6 +781,7 @@ func TestScan(t *testing.T) {
780781 Kparams : kevent.Kparams {
781782 kparams .ProcessID : {Name : kparams .ProcessID , Type : kparams .PID , Value : uint32 (1123 )},
782783 kparams .FileViewBase : {Name : kparams .FileViewBase , Type : kparams .Address , Value : uint64 (0x7f3e1000 )},
784+ kparams .FileViewSize : {Name : kparams .FileViewSize , Type : kparams .Uint64 , Value : uint64 (12333 )},
783785 kparams .MemProtect : {Name : kparams .MemProtect , Type : kparams .Flags , Value : uint32 (kevent .SectionRX ), Flags : kevent .ViewProtectionFlags },
784786 },
785787 Metadata : make (map [kevent.MetadataKey ]any ),
@@ -828,6 +830,7 @@ func TestScan(t *testing.T) {
828830 Kparams : kevent.Kparams {
829831 kparams .ProcessID : {Name : kparams .ProcessID , Type : kparams .PID , Value : uint32 (321321 )},
830832 kparams .FileViewBase : {Name : kparams .FileViewBase , Type : kparams .Address , Value : uint64 (0x7ffe0000 )},
833+ kparams .FileViewSize : {Name : kparams .FileViewSize , Type : kparams .Uint64 , Value : uint64 (12333 )},
831834 kparams .MemProtect : {Name : kparams .MemProtect , Type : kparams .Flags , Value : uint32 (0x10000 ), Flags : kevent .ViewProtectionFlags },
832835 },
833836 Metadata : make (map [kevent.MetadataKey ]any ),
@@ -877,6 +880,7 @@ func TestScan(t *testing.T) {
877880 kparams .ProcessID : {Name : kparams .ProcessID , Type : kparams .PID , Value : uint32 (1123 )},
878881 kparams .FileName : {Name : kparams .FileName , Type : kparams .UnicodeString , Value : filepath .Join (os .Getenv ("windir" ), "regedit.exe" )},
879882 kparams .FileViewBase : {Name : kparams .FileViewBase , Type : kparams .Address , Value : uint64 (0x7ffe0000 )},
883+ kparams .FileViewSize : {Name : kparams .FileViewSize , Type : kparams .Uint64 , Value : uint64 (12333 )},
880884 kparams .MemProtect : {Name : kparams .MemProtect , Type : kparams .Flags , Value : uint32 (kevent .SectionRWX ), Flags : kevent .ViewProtectionFlags },
881885 },
882886 Metadata : make (map [kevent.MetadataKey ]any ),
0 commit comments