Verbosity for "Error Invalid Address"

Issues related to VMProtect
Locked
TomBarisano
Posts: 17
Joined: Fri Dec 16, 2022 7:15 am

Verbosity for "Error Invalid Address"

Post by TomBarisano »

Hello,

I am trying to select numerous methods to protect in EXE

However the error I get is useless, it provides me no verbosity whatsoever

I have no way of knowing which of the large quantity of methods I selected has the invalid address

Is there some way to get some additional error verbosity here?
TomBarisano
Posts: 17
Joined: Fri Dec 16, 2022 7:15 am

Re: Verbosity for "Error Invalid Address"

Post by TomBarisano »

Update:

It appears this error only happens because I am selecting a lot of methods at once

Is it a data type issue? I.e. I am selecting more than 255 and VMprotect is using an Int8 somewhere internally resulting in this error?
TomBarisano
Posts: 17
Joined: Fri Dec 16, 2022 7:15 am

Re: Verbosity for "Error Invalid Address"

Post by TomBarisano »

Update to this:

The limit is 1,819

The limitation is somewhat GUI related

When Selecting methods for protection, it populated a comma delimited address list to the upper text box

The comma delimited list will get Truncated on the 1,820th selection

Short of writing a program to parse my MAP file and add entries to the VMprotect XML myself, is there any solution to this?
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Verbosity for "Error Invalid Address"

Post by Admin »

The error "invalid address" means that the address of a selected symbol belongs to wrong segment (problably the address is zero) and this behavior don't depens on how many symbols were selected. Anyway, VMProtect highlights this address in the "Address" textbox.
TomBarisano
Posts: 17
Joined: Fri Dec 16, 2022 7:15 am

Re: Verbosity for "Error Invalid Address"

Post by TomBarisano »

In this case, there is no highlighting of the error

You can't select more than about 1800, sometimes much less depending on the start addresses. I need to select around 60,000 if this is possible

Once you select a lot of methods, you will see that it starts rolling over, and the last entry is "0000000"

I copied to Notepad ++ and replace , with \r\n to make it easier to see what is happening

See attached pictures
Attachments
Limitation 2.png
Limitation 2.png (7.07 KiB) Viewed 2514 times
Limitation 1.png
Limitation 1.png (21.72 KiB) Viewed 2514 times
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Verbosity for "Error Invalid Address"

Post by Admin »

It seems you don't understand what happens. Your map file contains a method with address = 0. Just soft methods by address (click at the colum header) at the window "Add function" and you will see it.
TomBarisano
Posts: 17
Joined: Fri Dec 16, 2022 7:15 am

Re: Verbosity for "Error Invalid Address"

Post by TomBarisano »

I promise you, that is not what is happening

It is a VMProtect limitation, either memory, GUI, something like this

To reproduce, simply need to select more than ~1800 method

My first address when I sort by addresses in ascending order is 0000000140001000


What is going on, is truncation / rollover in VMprotect

Due to memory assignment limitation or GUI or something
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Verbosity for "Error Invalid Address"

Post by Admin »

It seems TextEdit has limit of buffer size, so the latest "000000014000xxxx" was truncated to "0000000". Anyway, adding of all functions is useless.
TomBarisano
Posts: 17
Joined: Fri Dec 16, 2022 7:15 am

Re: Verbosity for "Error Invalid Address"

Post by TomBarisano »

Ok thank you

I try to just add the main program methods

only 25 or so (small program)

When I compile, it runs but then silently crashes (exits). I am not sure if this is because Native AOT is weirder than normally developed EXE

I buy Themida so I will see if it has same problem or not (the demo does not do the full protection)

I would expect that Themida would have more problems, not less problems, than VMProtect, VMProtect more stable. but we will see
TomBarisano
Posts: 17
Joined: Fri Dec 16, 2022 7:15 am

Re: Verbosity for "Error Invalid Address"

Post by TomBarisano »

For what its worth, Themida have same issues with Native AOT EXE

The first Messagebox prompt that I put in my Main() method comes up, then after clicking it, program crashes

I will keep trying to debug this, but it seems Native AOT doing weird stuff

Again this happen even when just select 1 method
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Verbosity for "Error Invalid Address"

Post by Admin »

Please stop to post useless information about third-parties software like themida, etc. We and our customers are not at all interested in what bugs you found or did not find there. We have already asked you to provide us an example that shows problems with our software, but you didn't send us anything.

P.S. The topic is closed.
Locked