Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
15b650fe
Commit
15b650fe
authored
Sep 02, 2003
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more sanity checks for compressed files, BUG#770
parent
c297aa93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
myisam/mi_packrec.c
myisam/mi_packrec.c
+6
-0
No files found.
myisam/mi_packrec.c
View file @
15b650fe
...
...
@@ -743,6 +743,12 @@ static void uf_blob(MI_COLUMNDEF *rec, MI_BIT_BUFF *bit_buff,
{
ulong
length
=
get_bits
(
bit_buff
,
rec
->
space_length_bits
);
uint
pack_length
=
(
uint
)
(
end
-
to
)
-
mi_portable_sizeof_char_ptr
;
if
(
bit_buff
->
blob_pos
+
length
>
bit_buff
->
end
)
{
bit_buff
->
error
=
1
;
bzero
((
byte
*
)
to
,(
end
-
to
));
return
;
}
decode_bytes
(
rec
,
bit_buff
,
bit_buff
->
blob_pos
,
bit_buff
->
blob_pos
+
length
);
_my_store_blob_length
((
byte
*
)
to
,
pack_length
,
length
);
memcpy_fixed
((
char
*
)
to
+
pack_length
,(
char
*
)
&
bit_buff
->
blob_pos
,
...
...
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