Added updateCallbackSizes().
committer: mfx <mfx> 976882889 +0000
This commit is contained in:
+3
-1
@@ -227,11 +227,13 @@ protected:
|
|||||||
int patchVersion(void *b, int blen);
|
int patchVersion(void *b, int blen);
|
||||||
void checkPatch(void *b, int blen, int boff, int size);
|
void checkPatch(void *b, int blen, int boff, int size);
|
||||||
|
|
||||||
protected:
|
|
||||||
// relocation util
|
// relocation util
|
||||||
virtual upx_byte *optimizeReloc32(upx_byte *in,unsigned relocnum,upx_byte *out,upx_byte *image,int bs,int *big);
|
virtual upx_byte *optimizeReloc32(upx_byte *in,unsigned relocnum,upx_byte *out,upx_byte *image,int bs,int *big);
|
||||||
virtual unsigned unoptimizeReloc32(upx_byte **in,upx_byte *image,MemBuffer *out,int bs);
|
virtual unsigned unoptimizeReloc32(upx_byte **in,upx_byte *image,MemBuffer *out,int bs);
|
||||||
|
|
||||||
|
// UI util
|
||||||
|
virtual void updateCallbackSizes(unsigned *, unsigned *) const { }
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
InputFile *fi;
|
InputFile *fi;
|
||||||
|
|||||||
@@ -356,6 +356,8 @@ void UiPacker::doCallback(unsigned isize, unsigned osize)
|
|||||||
if (s->pass < 0) // no callback wanted
|
if (s->pass < 0) // no callback wanted
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
p->updateCallbackSizes(&isize, &osize);
|
||||||
|
|
||||||
if (s->u_len == 0 || isize > s->u_len)
|
if (s->u_len == 0 || isize > s->u_len)
|
||||||
return;
|
return;
|
||||||
// check if we should update the display
|
// check if we should update the display
|
||||||
|
|||||||
Reference in New Issue
Block a user