Skip to content

Commit

Permalink
Restored accidentialy committed file
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPeshkoff committed Jan 11, 2024
1 parent 8aacea4 commit 0b43e3d
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions src/burp/restore.epp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ bool get_sql_roles(BurpGlobals* tdgbl);
bool get_mapping(BurpGlobals* tdgbl);
bool get_db_creator(BurpGlobals* tdgbl);
bool get_security_class(BurpGlobals* tdgbl);
void get_source_blob(BurpGlobals* tdgbl, ISC_QUAD&, bool, void (*postProcess) (BlobBuffer& segment) = nullptr);
void get_source_blob(BurpGlobals* tdgbl, ISC_QUAD&, bool);
USHORT get_text(BurpGlobals* tdgbl, TEXT*, ULONG);
USHORT get_text2(BurpGlobals* tdgbl, TEXT* text, ULONG length);
bool get_trigger(BurpGlobals* tdgbl);
Expand Down Expand Up @@ -2721,11 +2721,6 @@ bool get_chk_constraint(BurpGlobals* tdgbl)
return true;
}

void clearAttributes(BlobBuffer& attr)
{

}

bool get_collation(BurpGlobals* tdgbl)
{
/**************************************
Expand Down Expand Up @@ -8836,7 +8831,7 @@ bool get_security_class(BurpGlobals* tdgbl)
return true;
}

void get_source_blob(BurpGlobals* tdgbl, ISC_QUAD& blob_id, bool glb_trans, void (*postProcess) (BlobBuffer& segment))
void get_source_blob(BurpGlobals* tdgbl, ISC_QUAD& blob_id, bool glb_trans)
{
/**************************************
*
Expand Down Expand Up @@ -8900,7 +8895,7 @@ void get_source_blob(BurpGlobals* tdgbl, ISC_QUAD& blob_id, bool glb_trans, void

// Allocate blob buffer if static buffer is too short
BlobBuffer static_buffer;
UCHAR* buffer = static_buffer.getBuffer(length);
UCHAR* const buffer = static_buffer.getBuffer(length);

while (length > 0)
{
Expand All @@ -8911,12 +8906,6 @@ void get_source_blob(BurpGlobals* tdgbl, ISC_QUAD& blob_id, bool glb_trans, void
--length; // -- or ++ ??? p is decremented, will have to test.
const USHORT seg_len = p - buffer;

if (postProcess)
{
postProcess(static_buffer);
buffer = static_buffer.begin();
}

if (!blob.putSegment(seg_len, buffer))
{
BURP_error_redirect(&status_vector, 38);
Expand Down

0 comments on commit 0b43e3d

Please sign in to comment.