Removed
Link Here
|
1 |
--- osslsigncode.c.orig Fri Jan 21 04:23:44 2005 |
2 |
+++ osslsigncode.c Thu Nov 9 15:31:37 2006 |
3 |
@@ -610,9 +610,10 @@ |
4 |
|
5 |
BIO_write(hash, indata + i, st.st_size - i); |
6 |
|
7 |
- /* pad (with 0's) pe file to 8 byte boundary */ |
8 |
+ /* pad (with 0's) pe file to 8 byte boundary, but do not pad at all if |
9 |
+ already aligned on 8 byte boundary. See http://sourceforge.net/tracker/index.php?func=detail&aid=1422627&group_id=129143&atid=713906 */ |
10 |
len = 8 - st.st_size % 8; |
11 |
- if (len > 0) { |
12 |
+ if (len > 0 && len != 8) { |
13 |
memset(buf, 0, len); |
14 |
BIO_write(hash, buf, len); |
15 |
st.st_size += len; |