You are here: PSPad forum > Bug report / Hlášení chyb > Re: Data position/length out of data bounds

Re: Data position/length out of data bounds

#1 Data position/length out of data bounds

Posted by: petercsak.tamas | Date: 2022-02-18 11:21 | IP: IP Logged

Hello!

This error is reproducible on 5.0.4 (543) to 5.0.7 (727) 32b and 64b version too.
If replace in HEXA mode anything to 0A or 0A to anything.
I downgraded to v.5.03. sad smiley

Data position/length out of data bounds.

v.5.04

Exception class: EMPHexEditor
Exception address: 0077264C
----------------------------------------------------------------------------------------------------
Stack list, generated 2022. 02. 18. 12:17:22
[00772647] MPHexEditor.TMPHMemoryStream.GetAddress (Line 9422, "MPHexEditor.pas" + 2) + $1C
[0076F8EA] MPHexEditor.TCustomMPHexEditor.GetFastPointer (Line 7907, "MPHexEditor.pas" + 0) + $6
[0076F01F] MPHexEditor.TCustomMPHexEditor.GetDataAt (Line 7571, "MPHexEditor.pas" + 3) + $9
[0076ABAB] MPHexEditor.TCustomMPHexEditor.FindHex (Line 5535, "MPHexEditor.pas" + 13) + $5
[009F6BBD] uFindHex.TfFindHex.FindReplaceHex (Line 148, "uFindHex.pas" + 50) + $15
[0040EFB3] System.@DynArrayClear + $3B
[009F6948] uFindHex.TfFindHex.bOKClick (Line 89, "uFindHex.pas" + 11) + $25
[006AD933] Vcl.Controls.TControl.Click + $73
[0059104E] Vcl.StdCtrls.TCustomButton.Click + $1E
[005921CC] Vcl.StdCtrls.TCustomButton.CNCommand + $C
[006AD3DA] Vcl.Controls.TControl.WndProc + $2BE
[006B22EF] Vcl.Controls.TWinControl.WndProc + $68F
[00590CA8] Vcl.StdCtrls.TButtonControl.WndProc + $6C
[006AD014] Vcl.Controls.TControl.Perform + $24
[006B244F] Vcl.Controls.DoControlMsg + $23
[006B3047] Vcl.Controls.TWinControl.WMCommand + $B
[00678CC1] Vcl.Forms.TCustomForm.WMCommand + $45
[006AD3DA] Vcl.Controls.TControl.WndProc + $2BE
[006B23FA] Vcl.Controls.TWinControl.DefaultHandler + $E6
[006AD3DA] Vcl.Controls.TControl.WndProc + $2BE
[006B22EF] Vcl.Controls.TWinControl.WndProc + $68F
[0040A900] System.TMonitor.TryEnter + $28
[0040A428] System.TMonitor.Enter + $10
[0040A294] System.TMonitor.CheckOwningThread + $4
[0040A5B6] System.TMonitor.Exit + $6
[0040A612] System.TMonitor.Exit + $1A
[00675659] Vcl.Forms.TCustomForm.WndProc + $6D1
[004EA9E4] System.Classes.StdWndProc + $14
[006B1844] Vcl.Controls.TWinControl.MainWndProc + $2C
[004EA9E4] System.Classes.StdWndProc + $14
[006B23FA] Vcl.Controls.TWinControl.DefaultHandler + $E6
[006ADD80] Vcl.Controls.TControl.WMLButtonUp + $10
[006AD3DA] Vcl.Controls.TControl.WndProc + $2BE
[006B1A57] Vcl.Controls.TWinControl.IsControlMouseMsg + $13
[006B22EF] Vcl.Controls.TWinControl.WndProc + $68F
[00590CA8] Vcl.StdCtrls.TButtonControl.WndProc + $6C
[006B1844] Vcl.Controls.TWinControl.MainWndProc + $2C
[004EA9E4] System.Classes.StdWndProc + $14
[0067F48F] Vcl.Forms.TApplication.ProcessMessage + $F3
[0067F4D2] Vcl.Forms.TApplication.HandleMessage + $A
[0067A8CE] Vcl.Forms.TCustomForm.ShowModal + $26E
[009F6782] uFindHex.ShowFindHex (Line 63, "uFindHex.pas" + 3) + $7
[00A8EFCC] uMain.TfPSPad.aReplaceExecute (Line 6764, "uMain.pas" + 2) + $2
[00A9DB6C] uMain.TfPSPad.ActionListExecute (Line 12124, "uMain.pas" + 11) + $7
[005660D4] System.Actions.TContainedActionList.ExecuteAction + $70
[00409DFE] System.@CallDynaInst + $6
[005690CD] Vcl.ActnList.TCustomAction.Execute + $69
[004E9AF3] System.Classes.TBasicActionLink.Execute + $13
[006985E3] Vcl.Menus.TMenuItem.Click + $93
[0069A2DB] Vcl.Menus.DoClick + $EF
[0069A3C7] Vcl.Menus.TMenu.IsShortCut + $87
[0067AF09] Vcl.Forms.TCustomForm.IsShortCut + $4D
[00409DFE] System.@CallDynaInst + $6
[0067F2B6] Vcl.Forms.TApplication.IsShortCut + $4E
[0067E8BE] Vcl.Forms.TApplication.WndProc + $482
[004EA9E4] System.Classes.StdWndProc + $14
[006A8110] Vcl.Controls.SendAppMessage + $18
[006B4A55] Vcl.Controls.TWinControl.IsMenuKey + $7D
[006B4A8D] Vcl.Controls.TWinControl.CNKeyDown + $1D
[006AD3DA] Vcl.Controls.TControl.WndProc + $2BE
[006B22EF] Vcl.Controls.TWinControl.WndProc + $68F
[006B1844] Vcl.Controls.TWinControl.MainWndProc + $2C
[004EA9E4] System.Classes.StdWndProc + $14
[0067F1C0] Vcl.Forms.TApplication.IsKeyMsg + $84
[0067F12B] Vcl.Forms.TApplication.IsMDIMsg + $3F
[0067F46B] Vcl.Forms.TApplication.ProcessMessage + $CF
[0067F4D2] Vcl.Forms.TApplication.HandleMessage + $A
[0067F805] Vcl.Forms.TApplication.Run + $C9
[00ACB2DD] PSPad.PSPad (Line 120, "" + 56) + $7
----------------------------------------------------------------------------------------------------
Program : C:\Program Files (x86)\PSPad editor\PSPad.exe 5.0.4 (543)
System : Windows 10 Professional x64, Version: 10.0, Build: 4A63,
Processor: Intel, Intel(R) Core(TM) i3-6100T CPU @ 3.20GHz, 3190 MHz MMX
Display : 1920x1080 pixels, 32 bpp PPI: 96
Skin : Windows
----------------------------------------------------------------------------------------------------
Active Controls Hierarchy:
TButton "bOK"
TfFindHex "fFindHex"
----------------------------------------------------------------------------------------------------

Exception class: EMPHexEditor
Exception address: 00758558
----------------------------------------------------------------------------------------------------
Stack list, generated 2022/ 02/ 18/ 11:55:37
[00758553] MPHexEditor.TMPHMemoryStream.GetAddress (Line 8530, "MPHexEditor.pas" + 2) + $1C
[00758630] MPHexEditor.TMPHMemoryStream.ReadBufferAt (Line 8561, "MPHexEditor.pas" + 3) + $7
[00754F2B] MPHexEditor.TCustomMPHexEditor.GetDataAt (Line 6807, "MPHexEditor.pas" + 4) + $E
[00750A73] MPHexEditor.TCustomMPHexEditor.FindHex (Line 4943, "MPHexEditor.pas" + 12) + $5
[009641A9] uFindHex.TfFindHex.FindReplaceHex (Line 153, "uFindHex.pas" + 50) + $15
[00963F32] uFindHex.TfFindHex.bOKClick (Line 94, "uFindHex.pas" + 15) + $25
[0065D20F] Vcl.Controls.TControl.Click + $73
[0055BB6E] Vcl.StdCtrls.TCustomButton.Click + $1E
[0055CCF8] Vcl.StdCtrls.TCustomButton.CNCommand + $C
[0065CCB6] Vcl.Controls.TControl.WndProc + $2BE
[00661DA9] Vcl.Controls.TWinControl.WndProc + $665
[0055B7E0] Vcl.StdCtrls.TButtonControl.WndProc + $6C
[0065C8EC] Vcl.Controls.TControl.Perform + $24
[00661F03] Vcl.Controls.DoControlMsg + $23
[006629A7] Vcl.Controls.TWinControl.WMCommand + $B
[00627A75] Vcl.Forms.TCustomForm.WMCommand + $45
[0065CCB6] Vcl.Controls.TControl.WndProc + $2BE
[00661EB1] Vcl.Controls.TWinControl.DefaultHandler + $E1
[0065CCB6] Vcl.Controls.TControl.WndProc + $2BE
[00661DA9] Vcl.Controls.TWinControl.WndProc + $665
[0040A800] System.TMonitor.Enter + $10
[0040A668] System.TMonitor.CheckOwningThread + $4
[0040A98E] System.TMonitor.Exit + $6
[0040A9EA] System.TMonitor.Exit + $1A
[0051B079] Vcl.Graphics.FreeMemoryContexts + $9D
[006242CC] Vcl.Forms.TCustomForm.WndProc + $710
[004DB6B0] System.Classes.StdWndProc + $14
[00661324] Vcl.Controls.TWinControl.MainWndProc + $2C
[004DB6B0] System.Classes.StdWndProc + $14
[00661EB1] Vcl.Controls.TWinControl.DefaultHandler + $E1
[0065D65C] Vcl.Controls.TControl.WMLButtonUp + $10
[0065CCB6] Vcl.Controls.TControl.WndProc + $2BE
[0066153B] Vcl.Controls.TWinControl.IsControlMouseMsg + $13
[00661DA9] Vcl.Controls.TWinControl.WndProc + $665
[0055B7E0] Vcl.StdCtrls.TButtonControl.WndProc + $6C
[00661324] Vcl.Controls.TWinControl.MainWndProc + $2C
[004DB6B0] System.Classes.StdWndProc + $14
[0062E3B7] Vcl.Forms.TApplication.ProcessMessage + $F3
[0062E3FA] Vcl.Forms.TApplication.HandleMessage + $A
[006296FA] Vcl.Forms.TCustomForm.ShowModal + $272
[00963D2A] uFindHex.ShowFindHex (Line 64, "uFindHex.pas" + 3) + $7
[00A00604] uMain.TfPSPad.aReplaceExecute (Line 6825, "uMain.pas" + 2) + $2
[00A101F0] uMain.TfPSPad.ActionListExecute (Line 12496, "uMain.pas" + 8) + $7
[00530220] System.Actions.TContainedActionList.ExecuteAction + $70
[0040A1D2] System.@CallDynaInst + $6
[00532E65] Vcl.ActnList.TCustomAction.Execute + $69
[004DA6D3] System.Classes.TBasicActionLink.Execute + $13
[00647A9F] Vcl.Menus.TMenuItem.Click + $93
[006497A7] Vcl.Menus.DoClick + $EF
[00649893] Vcl.Menus.TMenu.IsShortCut + $87
[00629D3D] Vcl.Forms.TCustomForm.IsShortCut + $4D
[0040A1D2] System.@CallDynaInst + $6
[0062E1DE] Vcl.Forms.TApplication.IsShortCut + $4E
[0062D796] Vcl.Forms.TApplication.WndProc + $4C2
[004DB6B0] System.Classes.StdWndProc + $14
[006578B8] Vcl.Controls.SendAppMessage + $18
[006642CD] Vcl.Controls.TWinControl.IsMenuKey + $7D
[00664305] Vcl.Controls.TWinControl.CNKeyDown + $1D
[0065CCB6] Vcl.Controls.TControl.WndProc + $2BE
[00661DA9] Vcl.Controls.TWinControl.WndProc + $665
[00661324] Vcl.Controls.TWinControl.MainWndProc + $2C
[004DB6B0] System.Classes.StdWndProc + $14
[0062E0E8] Vcl.Forms.TApplication.IsKeyMsg + $84
[0062E053] Vcl.Forms.TApplication.IsMDIMsg + $3F
[0062E393] Vcl.Forms.TApplication.ProcessMessage + $CF
[0062E3FA] Vcl.Forms.TApplication.HandleMessage + $A
[0062E739] Vcl.Forms.TApplication.Run + $D1
[00A3FA41] PSPad.PSPad (Line 122, "" + 56) + $7
----------------------------------------------------------------------------------------------------
Program : C:\TEMP\pspad\PSPad.exe 5.0.7 (727)
System : Windows 10 Professional x64, Version: 10.0, Build: 4A63,
Processor: Intel, Intel(R) Core(TM) i3-6100T CPU @ 3.20GHz, 3190 MHz MMX
Display : 1920x1080 pixels, 32 bpp PPI: 96
Skin : Windows
----------------------------------------------------------------------------------------------------
Active Controls Hierarchy:
TButton "bOK"
TfFindHex "fFindHex"
----------------------------------------------------------------------------------------------------

Please fix it!

--
Thanks!
Tamas

Options: Reply | Quote | Up ^


#2 Re: Data position/length out of data bounds

Posted by: pspad | Date: 2022-03-17 14:24 | IP: IP Logged

Hello

Tested with 5.0.7, but I wasn't able simulate problem.
I tried replace one char to 0A or 2 chars to 0A in 320kB file.

I need to know what did you replace to be able simulate problem.

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR