Modify

#4006 closed Bug (No Bug)

incomplete read missing key in IniReadSection

Reported by: itdev721@… Owned by:
Milestone: Component: AutoIt
Version: 3.3.14.0 Severity: None
Keywords: IniReadSection Cc:

Description

incomplete read missing key in IniReadSection
when the value length is too large or there is an error for some reason.

Attachments (1)

BUG_AUTOIT_IniReadSection.rar (4.2 KB ) - added by itdev721@… on Apr 16, 2024 at 1:33:55 AM.
is the file that contains the test and read script code

Download all attachments as: .zip

Change History (4)

by itdev721@…, on Apr 16, 2024 at 1:33:55 AM

is the file that contains the test and read script code

comment:1 by itdev721@…, on Apr 16, 2024 at 1:42:49 AM

This function is also broken in the latest version 3.3.16.1

comment:3 by Jos, on Apr 16, 2024 at 8:26:59 AM

Resolution: No Bug
Status: newclosed

The IniRead() function isn't broken and uses the standard GetPrivateProfileString() from the kerner32.dll which has a limitation for:

[in] nSize

The size of the buffer pointed to by the lpReturnedString parameter, in characters.

The maximum profile section size is 32,767 characters.

https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getprivateprofilesection#parameters

comment:4 by itdev721@…, on Apr 16, 2024 at 2:21:37 PM

yes i understand. Thank you very much.
and I have a suggestion to add a size limit note every time the developer uses this function. to avoid duplicate bug reports

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


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