Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libplist
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwn
libplist
Commits
460f5b42
Commit
460f5b42
authored
Apr 12, 2009
by
Jonathan Beck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix data buffer retrieval. Bump version to 0.10.
parent
49606077
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
CMakeLists.txt
CMakeLists.txt
+1
-1
plist.c
src/plist.c
+4
-4
No files found.
CMakeLists.txt
View file @
460f5b42
PROJECT
(
libplist
)
SET
(
LIBPLIST_VERSION_MAJOR
"0"
)
SET
(
LIBPLIST_VERSION_MINOR
"
8
"
)
SET
(
LIBPLIST_VERSION_MINOR
"
10
"
)
SET
(
LIBPLIST_SOVERSION
"0"
)
SET
(
LIBPLIST_VERSION
"
${
LIBPLIST_VERSION_MAJOR
}
.
${
LIBPLIST_VERSION_MINOR
}
"
)
SET
(
LIBPLIST_LIBVERSION
"
${
LIBPLIST_SOVERSION
}
.
${
LIBPLIST_VERSION
}
"
)
...
...
src/plist.c
View file @
460f5b42
...
...
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
...
...
@@ -269,7 +269,7 @@ static void plist_get_type_and_value(plist_t node, plist_type * type, void *valu
break
;
case
PLIST_DATA
:
*
((
uint8_t
**
)
value
)
=
(
uint8_t
*
)
malloc
(
*
length
*
sizeof
(
uint8_t
));
memcpy
(
value
,
data
->
buff
,
*
length
*
sizeof
(
uint8_t
));
memcpy
(
*
((
uint8_t
**
)
value
)
,
data
->
buff
,
*
length
*
sizeof
(
uint8_t
));
break
;
case
PLIST_DATE
:
//exception : here we use memory on the stack since it is just a temporary buffer
...
...
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