Modify

Opened 2 weeks ago

Closed 2 weeks ago

Last modified 2 weeks ago

#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@… 2 weeks ago.
is the file that contains the test and read script code

Download all attachments as: .zip

Change History (4)

Changed 2 weeks ago by itdev721@…

is the file that contains the test and read script code

comment:1 Changed 2 weeks ago by itdev721@…

This function is also broken in the latest version 3.3.16.1

comment:3 Changed 2 weeks ago by Jos

  • Resolution set to No Bug
  • Status changed from new to closed

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 Changed 2 weeks ago by itdev721@…

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

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.