Skip to content

Commit

Permalink
Fix dump in ZCL_ABAPGIT_GIT_PACK=>DECODE (abapGit#6468)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbtools authored Sep 5, 2023
1 parent c2254f9 commit 4ca6c4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/git/zcl_abapgit_git_pack.clas.abap
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ CLASS zcl_abapgit_git_pack IMPLEMENTATION.
gzip_out = lv_compressed
gzip_out_len = lv_compressed_len ).

IF lv_compressed(lv_compressed_len) <> lv_data(lv_compressed_len).
IF xstrlen( lv_data ) <= lv_compressed_len OR
lv_compressed(lv_compressed_len) <> lv_data(lv_compressed_len).
"Lets try with zlib before error in out for good
"This fixes issues with TFS 2017 and visualstudio.com Git repos
zlib_decompress( CHANGING cv_data = lv_data
Expand Down

0 comments on commit 4ca6c4a

Please sign in to comment.