Modify

#4079 closed Bug (Fixed)

Remove usage of _WinAPI_IsBad*Ptr functions from all standard libraries

Reported by: anonymous Owned by: Jpm
Milestone: Component: AutoIt
Version: 3.3.18.0 Severity: None
Keywords: Cc:

Description

_WinAPI_IsBadCodePtr
_WinAPI_IsBadReadPtr
_WinAPI_IsBadStringPtr
_WinAPI_IsBadWritePtr

The MSDN pages for these functions say "This function is obsolete and should not be used. Despite its name, it does not guarantee that the pointer is valid or that the memory pointed to is safe to use."

Calls to these functions can be found in these libraries.
Include\WinAPIDiag.au3
Include\WinAPIMem.au3
Include\WinAPISys.au3

Attachments (0)

Change History (2)

comment:1 by Jpm, on Mar 14, 2026 at 5:43:10 PM

I think they are safe if the memory have been created by AutoIt execution
I am looking how to have some doc modification

comment:2 by Jpm, on Jul 29, 2026 at 1:02:15 PM

Owner: set to Jpm
Resolution: Fixed
Status: newclosed

Fixed by revision [13461]

Added #4079: doc info for _WinAPIisBad*() UDF functions.

Modify Ticket

Action
as closed The owner will remain Jpm.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.