Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
98934f20
Commit
98934f20
authored
Jul 12, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnsapi: Fix some potential infinite loops because of an unsigned loop counter.
parent
4688389d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
query.c
dlls/dnsapi/query.c
+1
-2
record.c
dlls/dnsapi/record.c
+1
-2
No files found.
dlls/dnsapi/query.c
View file @
98934f20
...
...
@@ -418,8 +418,7 @@ static DNS_STATUS dns_copy_rdata( ns_msg msg, const ns_rr *rr, DNS_RECORDA *r, W
r
->
Data
.
TXT
.
pStringArray
[
i
]
=
dns_str_from_rdata
(
pos
);
if
(
!
r
->
Data
.
TXT
.
pStringArray
[
i
])
{
for
(
--
i
;
i
>=
0
;
i
--
)
dns_free
(
r
->
Data
.
TXT
.
pStringArray
[
i
]
);
while
(
i
>
0
)
dns_free
(
r
->
Data
.
TXT
.
pStringArray
[
--
i
]
);
return
ERROR_NOT_ENOUGH_MEMORY
;
}
i
++
;
...
...
dlls/dnsapi/record.c
View file @
98934f20
...
...
@@ -443,8 +443,7 @@ PDNS_RECORD WINAPI DnsRecordCopyEx( PDNS_RECORD src, DNS_CHARSET in, DNS_CHARSET
if
(
!
dst
->
Data
.
TXT
.
pStringArray
[
i
])
{
for
(
--
i
;
i
>=
0
;
i
--
)
dns_free
(
dst
->
Data
.
TXT
.
pStringArray
[
i
]
);
while
(
i
>
0
)
dns_free
(
dst
->
Data
.
TXT
.
pStringArray
[
--
i
]
);
goto
error
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment