Skip to content

Commit

Permalink
Add init to HttpRange to avoid crash in some platform
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlst committed Dec 13, 2019
1 parent e974631 commit 285f331
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/http/httprange.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ HttpRange::HttpRange(off_t entityLen)
: m_lEntityLen(entityLen)
{
::memset(m_boundary, 0, sizeof(m_boundary));
m_iCurRange = 0;
m_pPartHeaderEnd = 0x00;
m_pCurHeaderPos = 0x00;
}


Expand Down
2 changes: 1 addition & 1 deletion src/main/lshttpdmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
/***
* Do not change the below format, it will be set correctly while packing the code
*/
#define BUILDTIME " (built: Thu Dec 12 20:31:54 UTC 2019)"
#define BUILDTIME " (built: Fri Dec 13 19:51:51 UTC 2019)"

#define GlobalServerSessionHooks (LsiApiHooks::getServerSessionHooks())

Expand Down

0 comments on commit 285f331

Please sign in to comment.