Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2007-08

Saving of the registers in the Go32v2 core

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

I corrected several asm blocks for preservation of used registers in the core Go32v2 files, the name of attached patch is regscore.diff and it appliyes on the trunk branch. I also found a potential bug in the function strcopy of the file sysos.inc demonstrated (toggle with the OZMAGIC define) by the exploit5 program: when the conditional REGCALL is undefined the assembler optimization switch causes a problem (for what I can understand) with the parameters declared as a pchar. A patch is attached with the name strcopy.diff and it is cumulative to the previous one. Greetings, Marco.

The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance.

---- File information -----------
File: regscore.diff
Date: 6 Aug 2007, 18:21
Size: 25212 bytes.
Type: Unknown

The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance.

---- File information -----------
File: strcopy.diff
Date: 6 Aug 2007, 18:30
Size: 583 bytes.
Type: Unknown

The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any other MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance.

---- File information -----------
File: exploit5.pas
Date: 7 Aug 2007, 18:26
Size: 2198 bytes.
Type: Program-source

Reply by email

Lee, John
to Unknown author

The plan is to release v2.2 soon- do any of these these need to be applied to v2.2 fixes branch? Regards John

Show quoted text 24 lines
-----Original Message----- From: Behalf Of Sent: 07 August 2007 17:54 To: Subject: [fpc-devel] Saving of the registers in the Go32v2 core I corrected several asm blocks for preservation of used registers in the core Go32v2 files, the name of attached patch is regscore.diff and it appliyes on the trunk branch. I also found a potential bug in the function strcopy of the file sysos.inc demonstrated (toggle with the OZMAGIC define) by the exploit5 program: when the conditional REGCALL is undefined the assembler optimization switch causes a problem (for what I can understand) with the parameters declared as a pchar. A patch is attached with the name strcopy.diff and it is cumulative to the previous one. Greetings, Marco.

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.

Reply by email

Unknown author
to Lee, John
John wrote
The plan is to release v2.2 soon- do any of these these need to be applied to v2.2 fixes branch? Regards John

I don't know of any specific bug related to the lack of preservation of a register, but such thing often exploits in a way not directly related to the cause. The problem with the copystr is only potential, where REGCALL is switched off.
Marco.

Reply by email