|
|
3586c5 |
diff -up ./esc/src/app/daemon/manifest.mn.fix27 ./esc/src/app/daemon/manifest.mn
|
|
|
3586c5 |
--- ./esc/src/app/daemon/manifest.mn.fix27 2016-06-27 18:02:11.863677684 -0700
|
|
|
3586c5 |
+++ ./esc/src/app/daemon/manifest.mn 2016-06-27 18:02:30.416677684 -0700
|
|
|
3586c5 |
@@ -32,7 +32,7 @@ endif
|
|
|
3586c5 |
|
|
|
3586c5 |
DEFINES += -I$(SYS_INC)/nspr4 -I$(SYS_INC)/nss3 -I$(SYS_INC)/$(MOZ_OFFSET)/nspr -I$(SYS_INC)/$(MOZ_OFFSET)/nss
|
|
|
3586c5 |
|
|
|
3586c5 |
-DEFINES += $(shell pkg-config --cflags xft)
|
|
|
3586c5 |
+DEFINES += $(shell pkg-config --cflags xft) -fstack-protector-strong
|
|
|
3586c5 |
|
|
|
3586c5 |
CPPFLAGS += $(DEFINES) -g
|
|
|
3586c5 |
|
|
|
3586c5 |
diff -up ./esc/src/app/xpcom/Makefile.sdk.fix27 ./esc/src/app/xpcom/Makefile.sdk
|
|
|
3586c5 |
--- ./esc/src/app/xpcom/Makefile.sdk.fix27 2016-06-27 18:03:07.239677684 -0700
|
|
|
3586c5 |
+++ ./esc/src/app/xpcom/Makefile.sdk 2016-06-27 18:03:52.117677684 -0700
|
|
|
3586c5 |
@@ -112,7 +112,7 @@ endif
|
|
|
3586c5 |
ifeq ($(OS_ARCH),Linux)
|
|
|
3586c5 |
CPPFLAGS += -g -fno-rtti \
|
|
|
3586c5 |
-DXPCOM_GLUE_USE_NSPR -fno-exceptions \
|
|
|
3586c5 |
- -fshort-wchar -fPIC -std=gnu++0x
|
|
|
3586c5 |
+ -fshort-wchar -fPIC -std=gnu++0x -fstack-protector-strong
|
|
|
3586c5 |
GECKO_LD_LIBS=-L$(GECKO_SDK_PATH)/lib -lnssutil3 -lnss3 -lcrmf -lssl3 -lsmime3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl -L$(GECKO_SDK_PATH)/lib -lxpcomglue_s
|
|
|
3586c5 |
endif
|
|
|
3586c5 |
|
|
|
3586c5 |
diff -up ./esc/src/app/xpcom/tray/Makefile.sdk.fix27 ./esc/src/app/xpcom/tray/Makefile.sdk
|
|
|
3586c5 |
--- ./esc/src/app/xpcom/tray/Makefile.sdk.fix27 2016-06-27 18:04:06.166677684 -0700
|
|
|
3586c5 |
+++ ./esc/src/app/xpcom/tray/Makefile.sdk 2016-06-27 18:04:28.840677684 -0700
|
|
|
3586c5 |
@@ -110,7 +110,7 @@ endif
|
|
|
3586c5 |
CXX = c++
|
|
|
3586c5 |
CPPFLAGS += -fno-rtti \
|
|
|
3586c5 |
-fno-exceptions \
|
|
|
3586c5 |
- -fshort-wchar -DXPCOM_GLUE_USE_NSPR=1
|
|
|
3586c5 |
+ -fshort-wchar -DXPCOM_GLUE_USE_NSPR=1 -fstack-protector-strong
|
|
|
3586c5 |
|
|
|
3586c5 |
ifeq ($(OS_ARCH),WINNT)
|
|
|
3586c5 |
CPPFLAGS = -MD -DXP_WIN=1 -DXP_WIN32=1 -DXPCOM_GLUE -DXPCOM_GLUE_USE_NSPR -TP -nologo -W3 -Gy -EHsc -DNDEBUG
|
|
|
3586c5 |
diff -up ./esc/src/lib/coolkey/CoolKeyHandler.cpp.fix27 ./esc/src/lib/coolkey/CoolKeyHandler.cpp
|
|
|
3586c5 |
--- ./esc/src/lib/coolkey/CoolKeyHandler.cpp.fix27 2016-06-28 15:05:39.031677684 -0700
|
|
|
3586c5 |
+++ ./esc/src/lib/coolkey/CoolKeyHandler.cpp 2016-06-28 16:49:44.830201737 -0700
|
|
|
3586c5 |
@@ -2174,9 +2174,19 @@ CKHGetCoolKeyInfo(PK11SlotInfo *aSlot)
|
|
|
3586c5 |
|
|
|
3586c5 |
// Give the CAC card some sort of unique key ID
|
|
|
3586c5 |
|
|
|
3586c5 |
- if(strlen(info->mCUID) == 0)
|
|
|
3586c5 |
+ //There is a bug in coolkey where it returns the CUID of some previous
|
|
|
3586c5 |
+ // token's cuid , instead of something unique, thus lets use the label.
|
|
|
3586c5 |
+
|
|
|
3586c5 |
+ if(strlen(info->mCUID) == 0 || !isACOOLKey)
|
|
|
3586c5 |
{
|
|
|
3586c5 |
- strncpy(info->mCUID,(char *)tokenInfo.label,35);
|
|
|
3586c5 |
+ memset((void *) info->mCUID,0,35);
|
|
|
3586c5 |
+ int max = 0;
|
|
|
3586c5 |
+ if(sizeof(tokenInfo.label) < 34) {
|
|
|
3586c5 |
+ max = sizeof(tokenInfo.label);
|
|
|
3586c5 |
+ } else {
|
|
|
3586c5 |
+ max = 34;
|
|
|
3586c5 |
+ }
|
|
|
3586c5 |
+ strncpy(info->mCUID,(char *)tokenInfo.label,max);
|
|
|
3586c5 |
info->mCUID[34] = 0;
|
|
|
3586c5 |
isACOOLKey = 0;
|
|
|
3586c5 |
}
|
|
|
3586c5 |
diff -up ./esc/src/lib/coolkey/manifest.mn.fix27 ./esc/src/lib/coolkey/manifest.mn
|
|
|
3586c5 |
--- ./esc/src/lib/coolkey/manifest.mn.fix27 2016-06-27 17:54:18.221677684 -0700
|
|
|
3586c5 |
+++ ./esc/src/lib/coolkey/manifest.mn 2016-06-27 18:00:13.817677684 -0700
|
|
|
3586c5 |
@@ -26,7 +26,7 @@ REQUIRES = httpchunked nss nspr ckyapple
|
|
|
3586c5 |
ifndef MOZ_OFFSET
|
|
|
3586c5 |
MOZ_OFFSET = mozilla-1.7.13
|
|
|
3586c5 |
endif
|
|
|
3586c5 |
-DEFINES += -I$(CORE_DEPTH)/esc/app/xpcom -I$(SYS_INC)/nspr4 -I$(SYS_INC)/nss3 -I$(SYS_INC)/PCSC -I$(SYS_INC)/$(MOZ_OFFSET)/nspr -I$(SYS_INC)/$(MOZ_OFFSET)/nss -I$(XULRUNNER_BASE)/dist/public/nss -I$(XULRUNNER_BASE)/dist/include/nspr -I$(GECKO_SDK_PATH)/include/nspr -I$(GECKO_SDK_PATH)/include/nss -fno-strict-aliasing
|
|
|
3586c5 |
+DEFINES += -I$(CORE_DEPTH)/esc/app/xpcom -I$(SYS_INC)/nspr4 -I$(SYS_INC)/nss3 -I$(SYS_INC)/PCSC -I$(SYS_INC)/$(MOZ_OFFSET)/nspr -I$(SYS_INC)/$(MOZ_OFFSET)/nss -I$(XULRUNNER_BASE)/dist/public/nss -I$(XULRUNNER_BASE)/dist/include/nspr -I$(GECKO_SDK_PATH)/include/nspr -I$(GECKO_SDK_PATH)/include/nss -fno-strict-aliasing -fstack-protector-strong
|
|
|
3586c5 |
MAPFILE = $(OBJDIR)/ckymanager.def
|
|
|
3586c5 |
|
|
|
3586c5 |
#EXTRA_LIBS += -L$(DIST)/lib -lckyapplet
|
|
|
3586c5 |
diff -up ./esc/src/lib/notifytray/manifest.mn.fix27 ./esc/src/lib/notifytray/manifest.mn
|
|
|
3586c5 |
--- ./esc/src/lib/notifytray/manifest.mn.fix27 2016-06-27 18:00:24.566677684 -0700
|
|
|
3586c5 |
+++ ./esc/src/lib/notifytray/manifest.mn 2016-06-27 18:01:03.809677684 -0700
|
|
|
3586c5 |
@@ -17,7 +17,7 @@
|
|
|
3586c5 |
|
|
|
3586c5 |
CORE_DEPTH = ../../..
|
|
|
3586c5 |
|
|
|
3586c5 |
-DEFINES += $(shell pkg-config --cflags gtk+-2.0)
|
|
|
3586c5 |
+DEFINES += $(shell pkg-config --cflags gtk+-2.0) -fstack-protector-strong
|
|
|
3586c5 |
CCFLAGS += $(shell pkg-config --libs gtk+-2.0)
|
|
|
3586c5 |
CCFLAGS += $(shell pkg-config --cflags glib-2.0)
|
|
|
3586c5 |
|
|
|
3586c5 |
diff -up ./esc/src/lib/NssHttpClient/manifest.mn.fix27 ./esc/src/lib/NssHttpClient/manifest.mn
|
|
|
3586c5 |
--- ./esc/src/lib/NssHttpClient/manifest.mn.fix27 2016-06-27 18:01:15.521677684 -0700
|
|
|
3586c5 |
+++ ./esc/src/lib/NssHttpClient/manifest.mn 2016-06-27 18:01:34.320677684 -0700
|
|
|
3586c5 |
@@ -31,7 +31,7 @@ endif
|
|
|
3586c5 |
|
|
|
3586c5 |
|
|
|
3586c5 |
MAPFILE = $(OBJDIR)/httpchunked.def
|
|
|
3586c5 |
-DEFINES = -I$(SYS_INC)/nspr4 -I$(SYS_INC)/nss3 -I$(SYS_INC)/$(MOZ_OFFSET)/nspr -I$(SYS_INC)/$(MOZ_OFFSET)/nss -I$(XULRUNNER_BASE)/dist/public/nss -I$(XULRUNNER_BASE)/dist/include/nspr -I$(GECKO_SDK_PATH)/include/nspr -I$(GECKO_SDK_PATH)/include/nss
|
|
|
3586c5 |
+DEFINES = -I$(SYS_INC)/nspr4 -I$(SYS_INC)/nss3 -I$(SYS_INC)/$(MOZ_OFFSET)/nspr -I$(SYS_INC)/$(MOZ_OFFSET)/nss -I$(XULRUNNER_BASE)/dist/public/nss -I$(XULRUNNER_BASE)/dist/include/nspr -I$(GECKO_SDK_PATH)/include/nspr -I$(GECKO_SDK_PATH)/include/nss -fstack-protector-strong
|
|
|
3586c5 |
|
|
|
3586c5 |
CPPSRCS = \
|
|
|
3586c5 |
Cache.cpp \
|